blob: 5a24d0d21e355cba5d5253b364ad518c515d2725 (
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
53
54
55
56
57
58
59
60
61
|
name: Build-extra CI
on:
push:
branches: [ master ]
paths-ignore:
- CONTRIBUTING.md
- README
- README.md
- RELNOTES
- SECURITY.md
- 'etc/**'
- 'src/firecfg/firecfg.config'
- '.github/ISSUE_TEMPLATE/*'
- '.github/pull_request_template.md'
pull_request:
branches: [ master ]
paths-ignore:
- CONTRIBUTING.md
- README
- README.md
- RELNOTES
- SECURITY.md
- 'etc/**'
- 'src/firecfg/firecfg.config'
- '.github/ISSUE_TEMPLATE/*'
- '.github/pull_request_template.md'
jobs:
build-clang:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: install dependencies
run: sudo apt-get install libapparmor-dev libselinux1-dev
- name: configure
run: CC=clang-11 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux
- name: make
run: make
- name: make install
run: sudo make install
- name: print version
run: command -V firejail && firejail --version
scan-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: install clang-tools-11 and dependencies
run: sudo apt-get install clang-tools-11 libapparmor-dev libselinux1-dev
- name: configure
run: CC=clang-11 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux
- name: scan-build
run: NO_EXTRA_CFLAGS="yes" scan-build-11 --status-bugs make
cppcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: install cppcheck
run: sudo apt-get install cppcheck
- name: cppcheck
run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance .
|