Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add windows CI for testing #25

Merged
merged 20 commits into from
Apr 7, 2024
Merged
27 changes: 25 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: test
on: [ push, pull_request ]

jobs:
test:
name: Run CMake Test 🧪
test_ubuntu:
name: Run CMake Test on Ubuntu (GCC) 🧪
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -31,3 +31,26 @@ jobs:
cmake -DBUILD=test -DFORCE_32BIT=1 ..
make
make test || ctest --rerun-failed --output-on-failure

test_windows:
name: Run CMake Test on Windows (MSVC) 🧪
runs-on: windows-latest
steps:

- name: Checkout Code
uses: actions/checkout@v2

- name: Build and Run 64bit Tests
run: |
cmake -E make_directory build
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 "-DBUILD=test"
cmake --build build --config Release --target ALL_BUILD --
ctest -C Release -T test --test-dir build || ctest -C Release -T test --test-dir build --rerun-failed --output-on-failure

- name: Build and Run 32bit Tests
run: |
Remove-Item build -Force -Recurse
cmake -E make_directory build
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 "-DBUILD=test" "-DFORCE_32BIT=1"
cmake --build build --config Release --target ALL_BUILD --
ctest -C Release -T test --test-dir build || ctest -C Release -T test --test-dir build --rerun-failed --output-on-failure
Loading