-
Notifications
You must be signed in to change notification settings - Fork 29
50 lines (42 loc) · 1.24 KB
/
santizers.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: sanitizers
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
sanitizer: [ubsan, asan]
build_type: [Debug, Release]
include:
- cxx: g++-14
install: |
brew install gcc@14 ninja binutils
brew link --force binutils
steps:
- uses: actions/checkout@master
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Create Build Environment
run: |
${{matrix.install}}
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
run: |
cmake -GNinja \
-DFLUX_ENABLE_ASAN=${{matrix.sanitizer == 'asan'}} \
-DFLUX_ENABLE_UBSAN=${{matrix.sanitizer == 'ubsan'}} \
-DCMAKE_CXX_COMPILER=g++-14 \
$GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build .
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}
env:
CTEST_OUTPUT_ON_FAILURE: True