Skip to content

Commit

Permalink
ci: add cppcheck step.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr committed Jan 8, 2025
1 parent cdd3a2a commit 9368c76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- { pcie_opt: "false" }
steps:
- name: Install dependencies
run: ${{ matrix.distro.update_cmd }} && ${{ matrix.distro.install_cmd }} git meson ${{ matrix.distro.packages }} ${{ matrix.compiler.cc }}
run: ${{ matrix.distro.update_cmd }} && ${{ matrix.distro.install_cmd }} git meson cppcheck ${{ matrix.distro.packages }} ${{ matrix.compiler.cc }}
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -46,3 +46,5 @@ jobs:
run: ln -s build/compile_commands.json
- name: Run clang-tidy
run: ninja -C build clang-tidy
- name: Run cppcheck
run: cppcheck --addon=threadsafety -D__unix__ -D__GNUC__ --project=build/compile_commands.json -i subprojects/

0 comments on commit 9368c76

Please sign in to comment.