-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (79 loc) · 2.33 KB
/
Copy pathci.yml
File metadata and controls
88 lines (79 loc) · 2.33 KB
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
80
81
82
83
84
85
86
87
88
# UMR CI
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
build-test:
name: ${{ matrix.os }} (${{ matrix.build_type }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
build_type: Release
extra: ""
- os: ubuntu-latest
build_type: Debug
extra: "-DUMR_ENABLE_DEBUG=ON"
- os: windows-latest
build_type: Release
extra: ""
- os: macos-latest
build_type: Release
extra: ""
steps:
- uses: actions/checkout@v4
- name: Configure
run: >
cmake -S . -B build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DUMR_BUILD_TESTS=ON
-DUMR_BUILD_EXAMPLES=ON
-DUMR_BUILD_BENCHMARKS=ON
${{ matrix.extra }}
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}
- name: Test
run: ctest --test-dir build -C ${{ matrix.build_type }} --output-on-failure
asan:
name: Ubuntu AddressSanitizer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure (ASan)
run: >
cmake -S . -B build-asan
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DUMR_ENABLE_DEBUG=ON
-DUMR_BUILD_TESTS=ON
-DUMR_BUILD_EXAMPLES=OFF
-DCMAKE_C_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address"
- name: Build
run: cmake --build build-asan
- name: Test
run: ctest --test-dir build-asan --output-on-failure
env:
ASAN_OPTIONS: detect_leaks=0:halt_on_error=1
tsan:
name: Ubuntu ThreadSanitizer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure (TSan)
run: >
cmake -S . -B build-tsan
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DUMR_BUILD_TESTS=ON
-DUMR_BUILD_EXAMPLES=OFF
-DCMAKE_C_FLAGS="-fsanitize=thread -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread"
- name: Build
run: cmake --build build-tsan
- name: Test
run: ctest --test-dir build-tsan --output-on-failure
env:
TSAN_OPTIONS: halt_on_error=1