-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (28 loc) · 1.18 KB
/
msvc.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
name: msvc
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
header-mode-tests:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows VS2019, os: windows-2019, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Debug }
- { name: Windows VS2022, os: windows-2022, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Debug }
- { name: Windows VS2022, os: windows-latest, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Debug }
- { name: Windows Clang, os: windows-latest, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
steps:
- uses: actions/checkout@v3
- name: get updated submodules
run: git submodule update --init --recursive
- name: Configure test executables
run: cmake -S tests -B tests ${{matrix.platform.flags}}
- name: Build ${{matrix.platform.bin}} test executables
run: cmake --build tests --config Debug
- name: Run ${{matrix.platform.bin}} test executables
run: ctest --test-dir tests