diff options
author | 2024-02-24 03:49:54 -0300 | |
---|---|---|
committer | 2024-02-24 18:53:07 -0300 | |
commit | 1f6400bd89913d804b9803394c9c1bb629a7e97f (patch) | |
tree | 88ecbb7d94ca2a2a430048afd8e4c0b071d2176d /.github/workflows | |
parent | build: sync cppcheck targets with CI (diff) | |
download | firejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.tar.gz firejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.tar.zst firejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.zip |
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
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/check-c.yml | 6 |
1 files changed, 3 insertions, 3 deletions
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: | |||
67 | run: ./ci/printenv.sh | 67 | run: ./ci/printenv.sh |
68 | - name: configure | 68 | - name: configure |
69 | run: > | 69 | run: > |
70 | CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor | 70 | ./configure CC=clang-14 SCAN_BUILD=scan-build-14 |
71 | --enable-selinux | 71 | --enable-fatal-warnings --enable-apparmor --enable-selinux |
72 | || (cat config.log; exit 1) | 72 | || (cat config.log; exit 1) |
73 | - name: scan-build | 73 | - name: scan-build |
74 | run: scan-build-14 --status-bugs make | 74 | run: make scan-build |
75 | 75 | ||
76 | cppcheck: | 76 | cppcheck: |
77 | runs-on: ubuntu-22.04 | 77 | runs-on: ubuntu-22.04 |