-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (28 loc) · 968 Bytes
/
windows.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
name: Windows Build & Test
on:
push:
branches: [ "main" ]
jobs:
build:
name: ${{matrix.NAME}}
runs-on: windows-2019
strategy:
matrix:
include:
- BUILD_SHARED_LIBS: "On"
BUILD_TYPE: "Release"
- BUILD_SHARED_LIBS: "Off"
BUILD_TYPE: "Release"
steps:
- uses: actions/checkout@v3
- name: Create Build Directory
run: md -Name build -Force
- name: CMake Generation
working-directory: ${{github.workspace}}/build
run: cmake .. -G "Visual Studio 16 2019" "-DCMAKE_CONFIGURATION_TYPES=Debug;Release" -DOPENKIT_BUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_SHARED_LIBS=${{matrix.BUILD_SHARED_LIBS}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config ${{matrix.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.BUILD_TYPE}} --timeout 600 --output-on-failure