-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (59 loc) · 1.57 KB
/
ci.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
name: CI
on:
pull_request:
push:
branches:
- master
- develop
- feature/**
env:
UBSAN_OPTIONS: print_stacktrace=1
jobs:
posix-cmake-test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, macos-15 ]
variant: [ Debug, Release ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
mkdir __build__ && cd __build__
cmake -DCMAKE_BUILD_TYPE=${{matrix.variant}} ..
- name: Build tests
run: |
cmake --build __build__
- name: Run tests
run: |
ctest --test-dir __build__ --output-on-failure --no-tests=error
windows-cmake-test:
strategy:
fail-fast: false
matrix:
os: [ windows-2019, windows-2022 ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Configure
shell: cmd
run: |
mkdir __build__ && cd __build__
cmake ..
- name: Build tests (Debug)
shell: cmd
run: |
cmake --build __build__ --config Debug
- name: Run tests (Debug)
shell: cmd
run: |
ctest --test-dir __build__ --output-on-failure --no-tests=error -C Debug
- name: Build tests (Release)
shell: cmd
run: |
cmake --build __build__ --config Release
- name: Run tests (Release)
shell: cmd
run: |
ctest --test-dir __build__ --output-on-failure --no-tests=error -C Release