-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (44 loc) · 1.03 KB
/
continuous_integration.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
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Linux Clang",
os: ubuntu-20.04,
extra_options: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
}
- {
name: "Linux GCC",
os: ubuntu-20.04
}
- {
name: "macOS",
os: macos-12
}
- {
name: "Windows",
os: windows-2022
}
steps:
- uses: actions/checkout@v3
- name: Configure
shell: bash
run: |
cmake -B build ${{ matrix.config.extra_options }} .
- name: Build
shell: bash
run: |
export MAKEFLAGS=--keep-going
cmake --build build --config Release --parallel 3
- name: List Build Directory
if: always()
shell: bash
run: |
git status
ls -lR build