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
22
33on :
44 push :
2121 strategy :
2222 matrix :
2323 os : [ubuntu-22.04]
24+ sanitizer : [asan_ubsan, tsan]
2425
2526 steps :
2627 - uses : actions/checkout@v2
4344
4445 - name : Configure CMake
4546 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
4755
4856 - name : Build
4957 shell : bash
5462 GTEST_COLOR : " On"
5563 ASAN_OPTIONS : " color=always"
5664 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