Skip to content

add throw_ex to readme #258

add throw_ex to readme

add throw_ex to readme #258

Workflow file for this run

name: Build
on: [push]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
type: [Debug, RelWithDebInfo]
steps:
- name: Clone
uses: actions/checkout@v3
- name: VC Vars
# Setup vcvars on Windows
# MSVC's address sanitizer attaches dependencies to several DLLs which are not in PATH
# vcvars will add them to PATH and allow msvc asan executables to run
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
- name: Configure ASAN
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DITLIB_ASAN=1
- name: Build ASAN
run: cmake --build . --config ${{ matrix.type }}
- name: Test ASAN
run: ctest -C ${{ matrix.type }} --output-on-failure
env:
UBSAN_OPTIONS: halt_on_error=1
- name: Configure TSAN
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DITLIB_ASAN=0 -DITLIB_TSAN=1
- name: Build TSAN
run: cmake --build . --config ${{ matrix.type }}
- name: Test TSAN
run: ctest -L tsan -C ${{ matrix.type }} --output-on-failure