diff options
Diffstat (limited to '.github/workflows/build-extra.yml')
-rw-r--r-- | .github/workflows/build-extra.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml new file mode 100644 index 000000000..1468ef898 --- /dev/null +++ b/.github/workflows/build-extra.yml | |||
@@ -0,0 +1,52 @@ | |||
1 | name: Build-extra CI | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | branches: [ master ] | ||
6 | paths-ignore: | ||
7 | - CONTRIBUTING.md | ||
8 | - README | ||
9 | - README.md | ||
10 | - RELNOTES | ||
11 | - SECURITY.md | ||
12 | - 'etc/**' | ||
13 | pull_request: | ||
14 | branches: [ master ] | ||
15 | paths-ignore: | ||
16 | - CONTRIBUTING.md | ||
17 | - README | ||
18 | - README.md | ||
19 | - RELNOTES | ||
20 | - SECURITY.md | ||
21 | - 'etc/**' | ||
22 | |||
23 | jobs: | ||
24 | build-clang: | ||
25 | if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} | ||
26 | runs-on: ubuntu-20.04 | ||
27 | steps: | ||
28 | - uses: actions/checkout@v2 | ||
29 | - name: configure | ||
30 | run: CC=clang-10 ./configure --enable-fatal-warnings | ||
31 | - name: make | ||
32 | run: make | ||
33 | scan-build: | ||
34 | if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} | ||
35 | runs-on: ubuntu-20.04 | ||
36 | steps: | ||
37 | - uses: actions/checkout@v2 | ||
38 | - name: install clang-tools-10 | ||
39 | run: sudo apt-get install clang-tools-10 | ||
40 | - name: configure | ||
41 | run: CC=clang-10 ./configure --enable-fatal-warnings | ||
42 | - name: scan-build | ||
43 | run: NO_EXTRA_CFLAGS="yes" scan-build-10 --status-bugs make | ||
44 | cppcheck: | ||
45 | if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} | ||
46 | runs-on: ubuntu-20.04 | ||
47 | steps: | ||
48 | - uses: actions/checkout@v2 | ||
49 | - name: install cppcheck | ||
50 | run: sudo apt-get install cppcheck | ||
51 | - name: cppcheck | ||
52 | run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . | ||