diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2020-10-01 19:55:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 19:55:27 +0200 |
commit | 94e2ce275dfd035ed059a56eec4975e2faac8a65 (patch) | |
tree | 68803d04b466cc2db9f77e7e434d7834f49d9cf0 /.github/workflows | |
parent | build: check building with static analyzer in CI (diff) | |
download | firejail-94e2ce275dfd035ed059a56eec4975e2faac8a65.tar.gz firejail-94e2ce275dfd035ed059a56eec4975e2faac8a65.tar.zst firejail-94e2ce275dfd035ed059a56eec4975e2faac8a65.zip |
Create build.yml (#3651)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..a8779fc00 --- /dev/null +++ b/.github/workflows/build.yml | |||
@@ -0,0 +1,39 @@ | |||
1 | name: Build CI | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | branches: [ master ] | ||
6 | pull_request: | ||
7 | branches: [ master ] | ||
8 | |||
9 | jobs: | ||
10 | build: | ||
11 | runs-on: ubuntu-20.04 | ||
12 | steps: | ||
13 | - uses: actions/checkout@v2 | ||
14 | - name: install GCC 10 | ||
15 | run: sudo apt-get install gcc-10 | ||
16 | - name: configure | ||
17 | run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer | ||
18 | - name: make | ||
19 | run: make | ||
20 | # Disabled for now because of broken clang-10 support: https://github.com/actions/virtual-environments/issues/1536 | ||
21 | #build-clang: | ||
22 | # runs-on: ubuntu-20.04 | ||
23 | # steps: | ||
24 | # - uses: actions/checkout@v2 | ||
25 | # - name: install clang tools 10 | ||
26 | # run: sudo apt-get install clang-tools-10 | ||
27 | # - name: configure | ||
28 | # run: CC=clang-10 ./configure --enable-fatal-warnings | ||
29 | # - name: make | ||
30 | # run: NO_EXTRA_CFLAGS="yes" scan-build-10 make | ||
31 | cppcheck: | ||
32 | runs-on: ubuntu-20.04 | ||
33 | steps: | ||
34 | - uses: actions/checkout@v2 | ||
35 | - name: install cppcheck | ||
36 | run: sudo apt-get install cppcheck | ||
37 | - name: cppcheck | ||
38 | run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . | ||
39 | |||