-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (37 loc) · 1.32 KB
/
sanitizers.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
name: sanitizers
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
sanitizer: [ address, undefined, thread ]
include:
- cxx: clang++-15
pkgs: clang-15 llvm-15 libtbb-dev
env:
ASAN_OPTIONS: check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:detect_leaks=1
UBSAN_OPTIONS: print_stacktrace=1:print_summary=1
TSAN_OPTIONS: suppressions=../.tsan-supressions:external_symbolizer_path=/usr/lib/llvm-15/bin/llvm-symbolizer:verbosity=2:force_seq_cst_atomics=0
defaults:
run:
working-directory: ${{ github.workspace }}/build
name: ${{ matrix.cxx }} -fsanitize=${{ matrix.sanitizer }}
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: setup-compiler
run: sudo apt update && sudo apt install -y ${{ matrix.pkgs }}
- name: setup-catch
env:
CXX: ${{ matrix.cxx }}
run: sudo bash ./install_catch.sh
- name: setup-build
env:
CXX: ${{ matrix.cxx }}
run: cmake .. -DGAPP_LINK_TBB=ON -DGAPP_CXX_FLAGS="-fsanitize=${{ matrix.sanitizer }} -g -fno-omit-frame-pointer"
- name: build
run: cmake --build . --parallel
- name: run-unit-tests
run: ./tsan_tests