-
Notifications
You must be signed in to change notification settings - Fork 102
64 lines (61 loc) · 2.16 KB
/
unit-tests.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
name: Sigslot Unit Tests
on:
push:
branches:
- master
- main
- ci
- perf
pull_request:
branches:
- master
- main
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: ['Debug', 'Release']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Configure sigslot
run: |
cmake -E make_directory build
cmake \
-DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" \
-DSIGSLOT_ENABLE_MANY_WARNINGS=ON \
-DSIGSLOT_COMPILE_TESTS=ON \
-DSIGSLOT_COMPILE_EXAMPLES=ON \
-B build -S .
shell: bash
- name: Build Sigslot Examples
run: cmake --build build --target sigslot-examples --config "${{ matrix.build_type }}"
- name: Build & Run Sigslot Tests
run: cmake --build build --target sigslot-tests --config "${{ matrix.build_type }}"
Sanitizer:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sanitizer: ['SANITIZE_ADDRESS', 'SANITIZE_THREADS', 'SANITIZE_UNDEFINED']
steps:
- uses: actions/checkout@v3
- name: Configure sigslot
run: |
cmake -E make_directory build
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DSIGSLOT_ENABLE_MANY_WARNINGS=ON \
-DSIGSLOT_ENABLE_PROFILING=ON \
-DSIGSLOT_${{ matrix.sanitizer }}=ON \
-DSIGSLOT_COMPILE_TESTS=ON \
-DSIGSLOT_COMPILE_EXAMPLES=ON \
-B build -S .
shell: bash
- name: Build Sigslot Examples
run: cmake --build build --target sigslot-examples --config RelWithDebInfo
- name: Build & Run Sigslot Tests
run: cmake --build build --target sigslot-tests --config RelWithDebInfo