Skip to content

Commit a0015e9

Browse files
authored
Add windows CI for testing (#25)
1 parent 541009c commit a0015e9

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: test
22
on: [ push, pull_request ]
33

44
jobs:
5-
test:
6-
name: Run CMake Test 🧪
5+
test_ubuntu:
6+
name: Run CMake Test on Ubuntu (GCC) 🧪
77
runs-on: ubuntu-latest
88
steps:
99

@@ -31,3 +31,26 @@ jobs:
3131
cmake -DBUILD=test -DFORCE_32BIT=1 ..
3232
make
3333
make test || ctest --rerun-failed --output-on-failure
34+
35+
test_windows:
36+
name: Run CMake Test on Windows (MSVC) 🧪
37+
runs-on: windows-latest
38+
steps:
39+
40+
- name: Checkout Code
41+
uses: actions/checkout@v2
42+
43+
- name: Build and Run 64bit Tests
44+
run: |
45+
cmake -E make_directory build
46+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 "-DBUILD=test"
47+
cmake --build build --config Release --target ALL_BUILD --
48+
ctest -C Release -T test --test-dir build || ctest -C Release -T test --test-dir build --rerun-failed --output-on-failure
49+
50+
- name: Build and Run 32bit Tests
51+
run: |
52+
Remove-Item build -Force -Recurse
53+
cmake -E make_directory build
54+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 "-DBUILD=test" "-DFORCE_32BIT=1"
55+
cmake --build build --config Release --target ALL_BUILD --
56+
ctest -C Release -T test --test-dir build || ctest -C Release -T test --test-dir build --rerun-failed --output-on-failure

0 commit comments

Comments
 (0)