forked from simongog/sdsl-lite
-
Notifications
You must be signed in to change notification settings - Fork 18
79 lines (67 loc) · 1.9 KB
/
ci_asan.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: ASAN
on:
push:
branches:
# Push events to branches matching refs/heads/master
- 'master'
pull_request:
# Enables a manual trigger, may run on any branch
workflow_dispatch:
concurrency:
group: asan-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eexuo pipefail {0}
jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-22.04
timeout-minutes: 120
if: github.repository_owner == 'xxsds' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- name: "gcc13"
compiler: "gcc-13"
cxx_flags: "-std=c++23"
- name: "clang17"
compiler: "clang-17"
cxx_flags: "-std=c++23 -stdlib=libc++"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- name: Setup toolchain
uses: seqan/actions/setup-toolchain@main
with:
compiler: ${{ matrix.compiler }}
ccache_size: 125M
- name: Install CMake
uses: seqan/actions/setup-cmake@main
with:
cmake: 3.13.5
- name: Configure tests
run: |
mkdir ci-build
cd ci-build
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_FLAGS="-pedantic -Wall -Wextra -Werror -fsanitize=address ${{ matrix.cxx_flags }}"
make -j2 gtest_build
- name: Build tests
run: |
ccache -p
cd ci-build
make sdsl_test_targets sdsl_examples sdsl_tutorials -k -j2
ccache -s
- name: Run tests
run: |
cd ci-build
ctest . -j2 -E 'faust|moby' -R '-im'