From 365e80b3bdfde29704e6dd25e230a0fdbc6023e3 Mon Sep 17 00:00:00 2001 From: Ning Shang Date: Tue, 26 Mar 2024 16:50:53 -0700 Subject: [PATCH] GHA: more cleanups Add some more cleanups. --- .github/workflows/clang-sa.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/clang-sa.yml b/.github/workflows/clang-sa.yml index 0feae99..4b43ae3 100644 --- a/.github/workflows/clang-sa.yml +++ b/.github/workflows/clang-sa.yml @@ -1,5 +1,5 @@ # Static analysis via clang static analyzer -name: "Clang Static Analysis" +name: 'Clang Static Analysis' on: push: @@ -10,8 +10,11 @@ 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} @@ -19,7 +22,7 @@ jobs: 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 @@ -27,8 +30,9 @@ jobs: 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 @@ -36,7 +40,7 @@ jobs: 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