From 43367e3175524be1c5ca894409c4d91473effea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Pra=C5=BAmo?= Date: Mon, 9 Feb 2026 00:52:07 +0100 Subject: [PATCH] Optimize static code analysis workflows Updates ninja build options to only generate .xml.h files NO_SW_CHANGE PERFORM_CA --- .github/workflows/static-analysis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8e3a59e9d..dfc863c7a 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -31,10 +31,10 @@ jobs: run: git submodule update --init --recursive - name: Configure CMake - run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. + run: mkdir build && cd build && cmake -G Ninja -DGEN_ONLY=ON .. - name: Build the project (required to generate *.xml.h files) - run: cd build && ninja besprited + run: cd build && ninja - name: Run cppcheck run: cd build && cmake --build . --target cppcheck @@ -61,10 +61,10 @@ jobs: run: git submodule update --init --recursive - name: Configure CMake - run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. + run: mkdir build && cd build && cmake -G Ninja -DGEN_ONLY=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. - name: Build the project (required to generate *.xml.h files) - run: cd build && ninja besprited + run: cd build && ninja - name: Run clang-tidy run: cd build && cmake --build . --target clang-tidy @@ -98,10 +98,10 @@ jobs: run: git submodule update --init --recursive - name: Configure CMake - run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. + run: mkdir build && cd build && cmake -G Ninja -DGEN_ONLY=ON .. - name: Build the project (required to generate *.xml.h files) - run: cd build && ninja besprited + run: cd build && ninja - name: Run GCC with -fanalyzer run: cd build && cmake --build . --target gcc-analyzer