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