forked from taskflow/taskflow
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.29 KB
/
macos.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
name: macOS
on: [push, pull_request]
jobs:
debug-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -D CMAKE_BUILD_BENCHMARKS=ON -D CMAKE_BUILD_PROFILER=ON
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
release-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
undefined-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_FLAGS="-fsanitize=undefined -g"
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
tsan-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_FLAGS="-fsanitize=thread -g"
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure