From 9368c76d49c45320859a7fb6e8932b94dd539370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Wed, 8 Jan 2025 18:05:52 -0300 Subject: [PATCH] ci: add cppcheck step. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72c2765..65eb39b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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/