File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: test
22on : [ push, pull_request ]
33
44jobs :
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
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
You can’t perform that action at this time.
0 commit comments