-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (87 loc) · 1.93 KB
/
ci.yml
File metadata and controls
87 lines (87 loc) · 1.93 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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]
cxx: [g++, clang++]
runs-on: ${{ matrix.os }}
env:
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v2
- name: Install deps
run: scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
CSA:
runs-on: ubuntu-latest
env:
CXX: clang
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo apt-get install clang-tools
- name: Run tests
run: scan-build --keep-going --status-bugs scripts/travis.sh
Asan:
runs-on: ubuntu-latest
env:
CXX: clang++
ASAN: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
UBsan:
runs-on: ubuntu-latest
env:
CXX: clang++
UBSAN: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
Valgrind:
runs-on: ubuntu-latest
env:
VALGRIND: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo apt-get install valgrind
- name: Run tests
run: scripts/travis.sh
Coverage:
needs: Tests
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 llvm libclang-dev python3 python3-setuptools python3-wheel
- name: Run tests
run: scripts/travis.sh