Skip to content

Commit 7de0412

Browse files
committed
Add Windows to CI matrix
1 parent 552d77b commit 7de0412

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, macos-latest]
13+
os: [ubuntu-latest, macos-latest, windows-latest]
1414
runs-on: ${{ matrix.os }}
1515

1616
steps:
@@ -19,8 +19,13 @@ jobs:
1919
- name: Configure
2020
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
2121

22-
- name: Build
22+
- name: Build (Unix)
23+
if: runner.os != 'Windows'
2324
run: cmake --build build -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
2425

26+
- name: Build (Windows)
27+
if: runner.os == 'Windows'
28+
run: cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORS
29+
2530
- name: Test
26-
run: ctest --test-dir build --output-on-failure
31+
run: ctest --test-dir build --output-on-failure -C Release

0 commit comments

Comments
 (0)