-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 923 Bytes
/
sanitizer.yml
File metadata and controls
36 lines (29 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: ASan+UBSan
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v5
- name: Install BLAS (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libopenblas-dev
# Configure CMake with ASan + UBSan
- name: Configure with sanitizers
run: cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" \
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g"
# Build
- name: Build
run: cmake --build build --config Debug
# Run tests
- name: Run tests under ASan+UBSan
run: ./build/all_tests