Skip to content

GHA: more cleanups

GHA: more cleanups #32

Workflow file for this run

# Static analysis via clang static analyzer
name: 'Clang Static Analysis'
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
jobs:
sacheck:
name: 'Clang Static Analysis'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
defaults:
run:
shell: bash -euxo pipefail {0}
strategy:

Check failure on line 21 in .github/workflows/clang-sa.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clang-sa.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
fail-fast: false
steps:
- 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'
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'
run: |
cd ${{ github.workspace }}
autoreconf -vi
scripts/sa-check.sh