Skip to content

Commit

Permalink
GHA: more cleanups
Browse files Browse the repository at this point in the history
Add some more cleanups.
  • Loading branch information
syncom committed Mar 26, 2024
1 parent 837c9ed commit 365e80b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/clang-sa.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Static analysis via clang static analyzer
name: "Clang Static Analysis"
name: 'Clang Static Analysis'

on:
push:
Expand All @@ -10,33 +10,37 @@ on:

jobs:
sacheck:
name: "Clang Static Analysis"
runs-on: ubuntu-22.04
name: 'Clang Static Analysis'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
defaults:
run:
shell: bash -euxo pipefail {0}
strategy:
fail-fast: false

steps:
- name: Checkout repository
- name: 'Checkout repository'
uses: actions/checkout@v4.1.1
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
submodules: 'recursive'

- name: Install dependencies
- name: 'Install dependencies'
run: |
set -euxo pipefail
sudo apt update
sudo apt install -y texinfo texlive-latex-extra
sudo apt install -y autotools-dev autoconf build-essential bear
sudo apt install clang-tools-14 -y
sudo ln -sf /usr/bin/clang-check-14 /usr/bin/clang-check
# Run static analysis
- name: Run clang static analysis
- name: 'Run clang static analysis'
run: |
cd ${{ github.workspace }}
autoreconf -vi
Expand Down

0 comments on commit 365e80b

Please sign in to comment.