From 1f6400bd89913d804b9803394c9c1bb629a7e97f Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 24 Feb 2024 03:49:54 -0300 Subject: build: sync scan-build target with CI Changes: * Use --status-bugs in the scan-build target to exit with an error if bugs are found * Call the make target in the CI job --- .github/workflows/check-c.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml index c308e3620..b4ff6fd9c 100644 --- a/.github/workflows/check-c.yml +++ b/.github/workflows/check-c.yml @@ -67,11 +67,11 @@ jobs: run: ./ci/printenv.sh - name: configure run: > - CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor - --enable-selinux + ./configure CC=clang-14 SCAN_BUILD=scan-build-14 + --enable-fatal-warnings --enable-apparmor --enable-selinux || (cat config.log; exit 1) - name: scan-build - run: scan-build-14 --status-bugs make + run: make scan-build cppcheck: runs-on: ubuntu-22.04 -- cgit v1.2.3-54-g00ecf