-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (52 loc) · 1.15 KB
/
ci.yml
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
# TODO:
# * checkers: sanitizers, valgrind ?
name: CI
on:
push:
paths-ignore:
- 'LICENSE.txt'
- 'README.md'
- '.gitignore'
pull_request:
paths-ignore:
- 'LICENSE.txt'
- 'README.md'
- '.gitignore'
jobs:
Tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
cc: [gcc, clang]
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get -y install gdb
- name: Run tests
run: scripts/travis.sh
CSA:
runs-on: ubuntu-latest
env:
CC: clang
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get install clang-tools
- name: Run tests
run: scan-build --keep-going --status-bugs make clean all
Coverage:
runs-on: ubuntu-latest
environment: secrets
env:
COVERAGE: 1
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get -y install gdb
- name: Run tests
run: scripts/travis.sh