Skip to content

Commit 7339c89

Browse files
ci: build and test Windows configurations
1 parent 4216657 commit 7339c89

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Windows Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: windows-build-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build-and-test:
20+
name: x64 ${{ matrix.configuration }}
21+
runs-on: windows-2022
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
configuration:
26+
- Debug
27+
- Release
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4
32+
33+
- name: Configure
34+
run: >-
35+
cmake -S . -B "out/build/${{ matrix.configuration }}"
36+
-G "Visual Studio 17 2022" -A x64
37+
-DBUILD_TESTING=ON
38+
39+
- name: Build
40+
run: >-
41+
cmake --build "out/build/${{ matrix.configuration }}"
42+
--config "${{ matrix.configuration }}" --parallel
43+
44+
- name: Test
45+
run: >-
46+
ctest --test-dir "out/build/${{ matrix.configuration }}"
47+
-C "${{ matrix.configuration }}" --output-on-failure

0 commit comments

Comments
 (0)