-
Notifications
You must be signed in to change notification settings - Fork 10
60 lines (52 loc) · 1.58 KB
/
test.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
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Clang
if: matrix.os == 'ubuntu-latest'
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Setup Cmake
uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v2
- name: debug:run-tests
uses: lukka/run-cmake@v10
with:
configurePreset: "default"
buildPreset: "run-tests"
- name: release:run-tests
uses: lukka/run-cmake@v10
with:
configurePreset: "default"
configurePresetAdditionalArgs: "['-DCMAKE_BUILD_TYPE=Release']"
buildPreset: "run-tests"
- name: debug:test-col
uses: lukka/run-cmake@v10
with:
configurePreset: "dump-token"
buildPreset: "test-col"
- name: release:test-col
uses: lukka/run-cmake@v10
with:
configurePreset: "dump-token"
configurePresetAdditionalArgs: "['-DCMAKE_BUILD_TYPE=Release']"
buildPreset: "test-col"
- name: debug:test-op_loc
uses: lukka/run-cmake@v10
with:
configurePreset: "dump-bytecode-2"
buildPreset: "test-op_loc"
- name: release:test-op_loc
uses: lukka/run-cmake@v10
with:
configurePreset: "dump-bytecode-2"
configurePresetAdditionalArgs: "['-DCMAKE_BUILD_TYPE=Release']"
buildPreset: "test-op_loc"