-
Notifications
You must be signed in to change notification settings - Fork 38
50 lines (45 loc) · 1.24 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 }} | ${{ matrix.build_type }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Visual Studio 64-bit",
os: windows-latest,
extra_options: "-A x64"
}
- {
name: "Visual Studio 32-bit",
os: windows-latest,
extra_options: "-A Win32"
}
- {
name: "macOS",
os: macos-latest
}
- {
name: "Linux GCC",
os: ubuntu-latest
}
- {
name: "Linux Clang",
os: ubuntu-latest,
extra_options: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++"
}
build_type: ["Release", "Debug"]
steps:
- uses: actions/checkout@v1
- name: Configure
shell: bash
run: |
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.config.extra_options }} .
- name: Build
shell: bash
run: |
export MAKEFLAGS=--keep-going
cmake --build build --config ${{ matrix.build_type }} --parallel 3