-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (35 loc) · 994 Bytes
/
build.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
name: Build
on: [ push, pull_request ]
jobs:
build:
name: Build (${{ matrix.platform }}, ${{ matrix.config }}, C++${{ matrix.standard }})
runs-on: windows-latest
strategy:
matrix:
platform: [ Win32, x64 ]
config: [ Debug, Release ]
standard: [ 11, 17, 20 ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Create build directory
run: mkdir build
- name: Configure
working-directory: build
run: |
cmake `
-A ${{ matrix.platform }} `
-DCMAKE_CXX_STANDARD=${{ matrix.standard }} `
${{ github.workspace }}
- name: Build
working-directory: build
run: |
cmake `
--build . `
--config ${{ matrix.config }}
- name: Test
working-directory: build/${{ matrix.config }}/bin
run: ./Tests.exe