Skip to content

Commit fc22180

Browse files
[ci] job to test under sanitize=address
1 parent f50ec39 commit fc22180

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/sanitizer.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: sanitizer
2+
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
defaults:
7+
run:
8+
shell: bash -l {0}
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
name: 'sanitizer - ${{ matrix.sanitizer }}'
13+
strategy:
14+
matrix:
15+
sanitizer:
16+
- address
17+
steps:
18+
- name: Checkout xsimd
19+
uses: actions/checkout@v3
20+
- name: Install mamba
21+
uses: mamba-org/setup-micromamba@v1
22+
with:
23+
environment-file: environment.yml
24+
- name: Configure build
25+
run: |
26+
mkdir _build
27+
cd _build
28+
cmake .. -DBUILD_TESTS=ON \
29+
-DBUILD_BENCHMARK=ON \
30+
-DBUILD_EXAMPLES=ON \
31+
-DCMAKE_BUILD_TYPE=Release \
32+
-DCMAKE_CXX_FLAGS='-fsanitize=${{ matrix.sanitizer }}' \
33+
-G Ninja
34+
- name: Build
35+
run: ninja -C _build
36+
- name: Test
37+
run: |
38+
cd _build/test
39+
./test_xsimd

0 commit comments

Comments
 (0)