Skip to content

Commit

Permalink
Add Cppcheck on Linux
Browse files Browse the repository at this point in the history
We added continue-on-error to the job to make sure that Cppcheck runs
even if clang-tidy reports errors as they're independent.
  • Loading branch information
MiKom committed Jul 12, 2024
1 parent 0d98e39 commit 2550fec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Windows
os: windows-2022
tidy-executble: clang-tidy
continue-on-error: true

steps:
- name: Checkout sources
Expand Down Expand Up @@ -60,3 +61,17 @@ jobs:
echo "::error title=clang-tidy failed::See job log for details"
exit 1
}
- name: Run Cppcheck
if: runner.os == 'Linux'
shell: pwsh
run: >
cppcheck --quiet --language=c++ --force --inline-suppr
--enable=warning,performance,portability,information
--disable=missingInclude --check-level=exhaustive
-i build --library=std.cfg --error-exitcode=42 .
if($LASTEXITCODE -eq 42) {
echo "::error title=Cppcheck failed::See job log for details"
exit 1
}

0 comments on commit 2550fec

Please sign in to comment.