-
-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (36 loc) · 908 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
36
37
38
39
40
41
42
name: Windows
on:
push:
branches: [ develop, main]
pull_request:
branches: [ develop, main ]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build:
runs-on: ${{ matrix.os }}
name: ${{ matrix.version }} C++${{ matrix.cpp }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [windows-latest]
cpp: [17]
version: [msvc, clangcl]
include:
- version: msvc
generator: '"Visual Studio 17 2022"'
- version: clangcl
generator: '"Visual Studio 17 2022" -T "clangcl"'
env:
CPP_STANDARD: ${{ matrix.cpp }}
steps:
- uses: actions/checkout@v1
- name: Configure
run: cmake -G ${{ matrix.generator }} -S . -B build
- name: Build
run: cmake --build build --config Debug -j4
- name: Run tests
run: |
cd build
ctest --build-config Debug