aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build-extra.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-extra.yml')
-rw-r--r--.github/workflows/build-extra.yml25
1 files changed, 20 insertions, 5 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
index 9ba69e2a4..04023ab45 100644
--- a/.github/workflows/build-extra.yml
+++ b/.github/workflows/build-extra.yml
@@ -12,6 +12,7 @@ on:
12 - .git-blame-ignore-revs 12 - .git-blame-ignore-revs
13 - .github/dependabot.yml 13 - .github/dependabot.yml
14 - .github/pull_request_template.md 14 - .github/pull_request_template.md
15 - .github/workflows/build.yml
15 - .github/workflows/codeql-analysis.yml 16 - .github/workflows/codeql-analysis.yml
16 - .github/workflows/profile-checks.yml 17 - .github/workflows/profile-checks.yml
17 - .gitignore 18 - .gitignore
@@ -34,6 +35,7 @@ on:
34 - .git-blame-ignore-revs 35 - .git-blame-ignore-revs
35 - .github/dependabot.yml 36 - .github/dependabot.yml
36 - .github/pull_request_template.md 37 - .github/pull_request_template.md
38 - .github/workflows/build.yml
37 - .github/workflows/codeql-analysis.yml 39 - .github/workflows/codeql-analysis.yml
38 - .github/workflows/profile-checks.yml 40 - .github/workflows/profile-checks.yml
39 - .gitignore 41 - .gitignore
@@ -65,8 +67,12 @@ jobs:
65 run: sudo apt-get update 67 run: sudo apt-get update
66 - name: install dependencies 68 - name: install dependencies
67 run: sudo apt-get install libapparmor-dev libselinux1-dev 69 run: sudo apt-get install libapparmor-dev libselinux1-dev
70 - name: print env
71 run: ./ci/printenv.sh
68 - name: configure 72 - name: configure
69 run: CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux 73 run: >
74 CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor
75 --enable-selinux
70 - name: make 76 - name: make
71 run: make 77 run: make
72 - name: make install 78 - name: make install
@@ -88,8 +94,12 @@ jobs:
88 run: sudo apt-get update 94 run: sudo apt-get update
89 - name: install clang-tools-14 and dependencies 95 - name: install clang-tools-14 and dependencies
90 run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev 96 run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev
97 - name: print env
98 run: ./ci/printenv.sh
91 - name: configure 99 - name: configure
92 run: CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux 100 run: >
101 CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor
102 --enable-selinux
93 - name: scan-build 103 - name: scan-build
94 run: NO_EXTRA_CFLAGS="yes" scan-build-14 --status-bugs make 104 run: NO_EXTRA_CFLAGS="yes" scan-build-14 --status-bugs make
95 cppcheck: 105 cppcheck:
@@ -107,10 +117,13 @@ jobs:
107 run: sudo apt-get update 117 run: sudo apt-get update
108 - name: install cppcheck 118 - name: install cppcheck
109 run: sudo apt-get install cppcheck 119 run: sudo apt-get install cppcheck
120 - run: cppcheck --version
110 - name: cppcheck 121 - name: cppcheck
111 run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance -i src/firejail/checkcfg.c -i src/firejail/main.c . 122 run: >
112 # new cppcheck version currently chokes on checkcfg.c and main.c, therefore scan all files also 123 cppcheck -q --force --error-exitcode=1 --enable=warning,performance
113 # with older cppcheck version from ubuntu 20.04. 124 -i src/firejail/checkcfg.c -i src/firejail/main.c .
125 # new cppcheck version currently chokes on checkcfg.c and main.c, therefore
126 # scan all files also with older cppcheck version from ubuntu 20.04.
114 cppcheck_old: 127 cppcheck_old:
115 runs-on: ubuntu-20.04 128 runs-on: ubuntu-20.04
116 steps: 129 steps:
@@ -126,6 +139,7 @@ jobs:
126 run: sudo apt-get update 139 run: sudo apt-get update
127 - name: install cppcheck 140 - name: install cppcheck
128 run: sudo apt-get install cppcheck 141 run: sudo apt-get install cppcheck
142 - run: cppcheck --version
129 - name: cppcheck 143 - name: cppcheck
130 run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . 144 run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance .
131 codespell: 145 codespell:
@@ -143,5 +157,6 @@ jobs:
143 run: sudo apt-get update 157 run: sudo apt-get update
144 - name: install dependencies 158 - name: install dependencies
145 run: sudo apt-get install codespell 159 run: sudo apt-get install codespell
160 - run: codespell --version
146 - name: codespell 161 - name: codespell
147 run: make codespell 162 run: make codespell