Skip to content

Initial C++20 port of HftBacktest #1

Initial C++20 port of HftBacktest

Initial C++20 port of HftBacktest #1

Workflow file for this run

name: Sanitizers
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
asan-ubsan:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
ASAN_OPTIONS: detect_leaks=1:strict_string_checks=1
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
steps:
- uses: actions/checkout@v4
- name: Configure
run: >-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
-DHBT_WARNINGS_AS_ERRORS=ON
- name: Build
run: cmake --build build --parallel 2
- name: Test
run: ctest --test-dir build --output-on-failure