-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.1 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [Debug, Release]
cc: [gcc, clang, cl]
stress: [0, 2]
exclude:
- os: windows-latest
cc: gcc
- os: windows-latest
cc: clang
- os: ubuntu-latest
cc: cl
- os: macos-latest
cc: cl
env:
build_dir: "${{ github.workspace }}/build"
steps:
- uses: actions/checkout@v3
- name: Configure
run: >
cmake -S "${{ github.workspace }}" -B "${{ env.build_dir }}"
-DCMAKE_C_COMPILER=${{ matrix.cc }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DPAW_STRESS=${{ matrix.stress }}
- name: Build
working-directory: ${{ env.build_dir }}
run: cmake --build . --config ${{ matrix.build_type }}
- name: Test
working-directory: ${{ env.build_dir }}
run: ctest --verbose --build-config ${{ matrix.build_type }}