CI: introduce static-analysis job.
Chaos Ci / test (push) Successful in 3m14s
Chaos Ci / static-analysis (push) Failing after 34s
Chaos Ci / benchmark (push) Successful in 1m32s

This commit is contained in:
hashlag committed 2026-10-12 02:39:27 +03:00
1 parent 8401612e20
commit 6cad16991e
1 file changed
+32
+32
View File
@@ -58,6 +58,38 @@ jobs:
include-hidden-files: true include-hidden-files: true
retention-days: 10 retention-days: 10
static-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake cppcheck
- name: Generate compile commands
run: |
mkdir build-debug
cmake -S . -B build-debug/ -D CMAKE_BUILD_TYPE=Debug -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run cppcheck
run: |
cppcheck --version
cppcheck --project=build-debug/compile_commands.json \
--file-filter="$PWD/Chaos/*" \
--file-filter="$PWD/ChaosTests/*" \
--file-filter="$PWD/ChaosBenches/*" \
--enable=warning,performance,portability \
--suppress='*:*/_deps/*' \
--suppress=missingIncludeSystem \
--inline-suppr \
--error-exitcode=1
benchmark: benchmark:
runs-on: ubuntu-latest runs-on: ubuntu-latest