From 5197e6b79ff1cc1591d4568f2e59aa82f87db9dd Mon Sep 17 00:00:00 2001 From: Rangi <35663410+Rangi42@users.noreply.github.com> Date: Mon, 30 Dec 2024 09:57:41 -0500 Subject: [PATCH] Run gcc static analysis in CI (#1587) --- .github/workflows/analysis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/analysis.yml diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml new file mode 100644 index 00000000..97c6f9fb --- /dev/null +++ b/.github/workflows/analysis.yml @@ -0,0 +1,18 @@ +name: Static analysis +on: + - push + - pull_request + +jobs: + analysis: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install deps + shell: bash + run: | + ./.github/scripts/install_deps.sh ubuntu-latest + - name: Static analysis + run: | # Silence warnings with too many false positives (https://stackoverflow.com/a/73913076) + make -kj CXX=g++-14 CXXFLAGS="-fanalyzer -fanalyzer-verbosity=0 -Wno-analyzer-use-of-uninitialized-value -DNDEBUG" Q=