File tree Expand file tree Collapse file tree 2 files changed +12
-59
lines changed Expand file tree Collapse file tree 2 files changed +12
-59
lines changed Original file line number Diff line number Diff line change 1
- name : cmake Ubuntu with Address and Undefined Behavior Sanitizers
1
+ name : cmake Ubuntu Sanitizers
2
2
3
3
on :
4
4
push :
21
21
strategy :
22
22
matrix :
23
23
os : [ubuntu-22.04]
24
+ sanitizer : [asan_ubsan, tsan]
24
25
25
26
steps :
26
27
- uses : actions/checkout@v2
43
44
44
45
- name : Configure CMake
45
46
shell : bash
46
- run : cmake --preset conan-${{ env.BUILD_TYPE_LOWERCASE }} -DBTCPP_ENABLE_ASAN:BOOL=ON -DBTCPP_ENABLE_UBSAN:BOOL=ON
47
+ run : |
48
+ if [[ "${{ matrix.sanitizer }}" == "asan_ubsan" ]]; then
49
+ cmake --preset conan-${{ env.BUILD_TYPE_LOWERCASE }} \
50
+ -DBTCPP_ENABLE_ASAN:BOOL=ON -DBTCPP_ENABLE_UBSAN:BOOL=ON
51
+ else
52
+ cmake --preset conan-${{ env.BUILD_TYPE_LOWERCASE }} \
53
+ -DBTCPP_ENABLE_TSAN:BOOL=ON
54
+ fi
47
55
48
56
- name : Build
49
57
shell : bash
54
62
GTEST_COLOR : " On"
55
63
ASAN_OPTIONS : " color=always"
56
64
UBSAN_OPTIONS : " halt_on_error=1:print_stacktrace=1:color=always"
57
- run : ctest --test-dir build/${{env.BUILD_TYPE}}
65
+ TSAN_OPTIONS : " color=always"
66
+ run : sudo sysctl vm.mmap_rnd_bits=28 && ctest --test-dir build/${{env.BUILD_TYPE}} --output-on-failure
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments