-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.06 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
name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
mode: [ RelWithDebInfo, Debug ]
compiler: [ cl, clang]
platform: [ x86, x64 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure
run: |
$CMakeArgs = @()
if ("${{matrix.compiler}}" -eq "clang") {
$CMakeArgs += @("-T","ClangCL")
}
if ("${{matrix.platform}}" -eq "x86") {
$CMakeArgs += @("-A","Win32")
}
mkdir build
cd build
Write-Output("Running: cmake .. @CMakeArgs")
cmake .. @CMakeArgs
- name: Build
working-directory: build
run: cmake --build . --config ${{matrix.mode}} --parallel
- name: Install
working-directory: build
run: cmake --install . --config ${{matrix.mode}} --prefix ${{runner.temp}}/install
- name: Run tests
working-directory: ${{runner.temp}}/install
run: bin/test.exe