Skip to content

update workflows

update workflows #681

Workflow file for this run

name: sanitizers
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
sanitizer: [ address, undefined, thread ]
include:
- cxx: clang++-18
pkgs: clang-18 llvm-18
env:
ASAN_OPTIONS: check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:detect_leaks=1
UBSAN_OPTIONS: print_stacktrace=1:print_summary=1
TSAN_OPTIONS: verbosity=1:force_seq_cst_atomics=0
defaults:
run:
working-directory: ${{ github.workspace }}/build
name: ${{ matrix.cxx }} -fsanitize=${{ matrix.sanitizer }}
steps:
- name: checkout-repo
uses: actions/checkout@v4
- name: setup-compiler
run: sudo apt update && sudo apt install -y ${{ matrix.pkgs }}
- name: aslr-workaround
run: sudo sysctl vm.mmap_rnd_bits=28
- name: setup-catch
env:
CXX: ${{ matrix.cxx }}
run: sudo bash ../tools/install_catch.sh
- name: setup-build
env:
CXX: ${{ matrix.cxx }}
run: cmake .. -DGAPP_CXX_FLAGS="-fsanitize=${{ matrix.sanitizer }} -g -fno-omit-frame-pointer"
- name: build
run: cmake --build . --parallel
- name: run-unit-tests
run: ctest --output-on-failure --schedule-random
- name: run-integration-tests
run: ./integration_tests