Skip to content

Commit 39f2c9c

Browse files
committed
workflows: Run Windows unit testing correctly
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 04f76dc commit 39f2c9c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ jobs:
1818
os: [windows-2025, windows-2022]
1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Build on ${{ matrix.os }} with vs-2019
21+
- name: Set up with Developer Command Prompt for Microsoft Visual C++
22+
uses: ilammy/msvc-dev-cmd@v1
23+
with:
24+
arch: amd64
25+
- name: Build on ${{ matrix.os }} with MSVC
2226
run: |
23-
.\scripts\win_build.bat
27+
cmake -G "NMake Makefiles" -DCIO_TESTS=On .
2428
- name: Run unit tests.
2529
run: |
26-
ctest --rerun-failed --output-on-failure -C Debug --test-dir .
30+
ctest . --rerun-failed --output-on-failure --test-dir .
2731
build-unix:
2832
name: Build sources on amd64 for ${{ matrix.os }} - ${{ matrix.compiler }}
2933
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)