Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

CI: install cppcheck with cfg files, add to PATH

Martin Vogel20b6932f8272
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml
index f9a5c06e9..825b5c8a5 100644
--- a/.github/workflows/dry-run.yml
+++ b/.github/workflows/dry-run.yml
@@ -28,16 +28,19 @@ jobs:
- uses: actions/cache@v4
id: cppcheck-cache
with:
- path: /usr/local/bin/cppcheck
+ path: /opt/cppcheck
key: cppcheck-2.20.0-ubuntu-amd64
- name: Build cppcheck 2.20.0
if: steps.cppcheck-cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch 2.20.0 https://github.com/danmar/cppcheck.git /tmp/cppcheck
- cmake -S /tmp/cppcheck -B /tmp/cppcheck/build -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=OFF
+ cmake -S /tmp/cppcheck -B /tmp/cppcheck/build -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=OFF -DCMAKE_INSTALL_PREFIX=/opt/cppcheck
cmake --build /tmp/cppcheck/build -j$(nproc)
- sudo cp /tmp/cppcheck/build/bin/cppcheck /usr/local/bin/cppcheck
+ cmake --install /tmp/cppcheck/build
+
+ - name: Add cppcheck to PATH
+ run: echo "/opt/cppcheck/bin" >> "$GITHUB_PATH"
- name: Verify versions
run: |
@@ -49,7 +52,7 @@ jobs:
run: make -f Makefile.cbm lint-format CLANG_FORMAT=clang-format-20
- name: cppcheck
- run: make -f Makefile.cbm lint-cppcheck CPPCHECK=/usr/local/bin/cppcheck
+ run: make -f Makefile.cbm lint-cppcheck
- name: clang-tidy
run: make -f Makefile.cbm lint-tidy CLANG_TIDY=clang-tidy-20