-
Notifications
You must be signed in to change notification settings - Fork 280
66 lines (61 loc) · 1.5 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tools
run: sudo apt-get -y install tree ninja-build
- name: Configure
run: |
cmake -DSANITIZE_ADDRESS=On -S . -B build -GNinja
- name: Build
run: |
cmake --build build
tree -sha build
- name: Test
run: ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 cmake --build build --target test
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Tools
run: brew install tree ninja
- name: Configure
run: |
cmake -DSANITIZE_ADDRESS=On -S . -B build -GNinja
- name: Build
run: |
cmake --build build
tree -sha build
- name: Test
run: cmake --build build --target test
windows-msvc:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v2
- name: Configure
run: cmake -S . -B build
- name: Build
run: |
cmake --build build --config "Debug"
tree /a /f build
- name: Test
run: |
cd build
ctest -VV -C "Debug"
windows-mingw:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v2
- name: Configure
run: cmake -S . -B build -G "MinGW Makefiles"
- name: Build
run: |
cmake --build build
tree /a /f build
- name: Test
run: |
cd build
ctest -VV -C "Debug" --output-on-failure