-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 956 Bytes
/
asan.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
name: asan
on:
push:
branches:
- 'main'
- 'dev**'
pull_request:
branches:
- 'main'
env:
TARGET_ARCH: linux64
GITHUB_TOKEN: ${{secrets.CI_TOKEN}}
ASAN_OPTIONS: verbosity=1
TSAN_OPTIONS: verbosity=1
UBSAN_OPTIONS: print_stacktrace=1
jobs:
sanitize:
name: ${{matrix.sanitizer}}
runs-on: self-hosted-ubuntu-22.04
strategy:
fail-fast: false
matrix:
sanitizer: [ASAN, TSAN, UBSAN]
steps:
- name: Checkout VCML CCI
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{secrets.CI_TOKEN}}
- name: Configure
run: cmake -B BUILD -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.sanitizer}} -DVCML_CCI_TESTS=ON .
- name: Build
run: cmake --build BUILD --config ${{matrix.sanitizer}} -j $(nproc)
- name: Test
working-directory: ${{github.workspace}}/BUILD
run: ctest -C ${{matrix.sanitizer}} --output-on-failure