blob: 2e46a583f430d0e2581cbeebba0b5d6b45744ee3 (
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
|
name: Build CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install gcc-10 libapparmor-dev libselinux1-dev
- name: configure
run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux
- name: make
run: make
build-clang:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: configure
run: CC=clang-10 ./configure --enable-fatal-warnings
- name: make
run: make
# Disabled for now because of broken clang-10 support: https://github.com/actions/virtual-environments/issues/1536
# - name: install clang tools 10
# run: sudo apt-get install clang-tools-10
# - name: scan-build
# run: make clean && NO_EXTRA_CFLAGS="yes" scan-build-10 make
cppcheck:
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 .
|