Skip to content

support array types #29

support array types

support array types #29

Workflow file for this run

name: sanitizers
on: push
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
sanitizer: [ address, undefined ]
compiler: [
{ cxx: clang++-15, pkgs: clang-15 },
{ cxx: g++-12, pkgs: g++-12 }
]
env:
ASAN_OPTIONS: check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:detect_leaks=1:detect_invalid_pointer_pairs=2
UBSAN_OPTIONS: print_stacktrace=1:print_summary=1
defaults:
run:
working-directory: ${{ github.workspace }}/build
name: ${{ matrix.compiler.cxx }} -fsanitize=${{ matrix.sanitizer }}
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: setup-compiler
run: sudo apt update && sudo apt install -y ${{ matrix.compiler.pkgs }}
- name: setup-catch
run: sudo bash ./install_catch.sh -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
- name: setup-build
run: sudo cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_CXX_FLAGS="-fsanitize=${{ matrix.sanitizer }} -g -fno-omit-frame-pointer"
- name: build
run: sudo cmake --build .
- name: run-tests
run: sudo ctest --output-on-failure --schedule-random