forked from qicosmos/iguana
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 856 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 Server 2022
on:
push:
branches: [ master, struct_pb ]
pull_request:
branches: [ master, struct_pb ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
mode: [Debug, Release]
cpp_version: [17, 20]
arch: [x64]
env:
CXX: cl.exe
CC: cl.exe
steps:
- name: check out
uses: actions/checkout@v3
- name: generate project
run: cmake -B ${{ github.workspace }}\build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -A${{ matrix.arch }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
- name: build iguana
run: cmake --build ${{ github.workspace }}\build --config ${{ matrix.mode }}
- name: test
working-directory: ${{github.workspace}}\build
run: ctest -C ${{matrix.mode}} -j 1 -V