-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (48 loc) · 1.46 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Windows
on:
push:
branches:
- main
pull_request:
jobs:
msvc2019:
runs-on: windows-2019
strategy:
matrix:
build_type: [Debug, Release]
architecture: [Win32, x64]
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -A ${{ matrix.architecture }}
if: matrix.build_type == 'Release'
- name: cmake
run: cmake -S . -B build -A ${{ matrix.architecture }}
if: matrix.build_type == 'Debug'
- name: build
run: cmake --build build --config ${{ matrix.build_type }} --parallel 2
- name: test
run: cd build && ctest -j 2 -C ${{ matrix.build_type }} --output-on-failure
msvc2019_latest:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -DCMAKE_CXX_FLAGS="/permissive- /std:c++latest /utf-8 /W4"
- name: build
run: cmake --build build --config Release --parallel 2
- name: test
run: cd build && ctest -j 2 -C Release --output-on-failure
clang-cl-11:
runs-on: windows-latest
strategy:
matrix:
architecture: [Win32, x64]
steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -A ${{ matrix.architecture }} -T ClangCL
- name: build
run: cmake --build build --config Debug --parallel 2
- name: test
run: cd build && ctest -j 2 -C Debug --output-on-failure