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/