Skip to content

Update CMakeLists.txt #92

Update CMakeLists.txt

Update CMakeLists.txt #92

Workflow file for this run

name: CPP Semver Sanitize
on: [push, pull_request]
jobs:
sanitize:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
flags:
- "-fsanitize=leak -g -O1 -fno-omit-frame-pointer" #LSAN
- "-fsanitize=address -g -O1 -fno-omit-frame-pointer" #ASAN
- "-fsanitize=thread -g -O1 -fno-omit-frame-pointer" #TSAN
- "-fsanitize=undefined -fno-omit-frame-pointer" #UBSAN
name: ${{matrix.os}} ${{matrix.flags}}
env:
CXX: clang++
CXXFLAGS: ${{ matrix.flags }}
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- uses: actions/checkout@v3
- name: cmake
run: cmake -S . -B build
- name: build
run: cmake --build build --parallel 4
- name: test
working-directory: build
run: ctest -j4