Skip to content

Add windows CI for testing #40

Add windows CI for testing

Add windows CI for testing #40

Workflow file for this run

name: test
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
name: Run CMake Test 🧪
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Build Tools
run: |
sudo apt-get update
sudo apt-get install -y gcc cmake
- name: Build and Run 64bit Tests
run: |
mkdir build
cd build
cmake -DBUILD=test ..
make
make test || ctest --rerun-failed --output-on-failure
- name: Build and Run 32bit Tests
run: |
rm -rf build
mkdir build
cd build
cmake -DBUILD=test -DFORCE_32BIT=1 ..
make
make test || ctest --rerun-failed --output-on-failure
test_msvc:
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: |
mkdir build && cd ./build
cmake .. -DBUILD=test -G "Visual Studio 17 2022" -A x64
cmake --build .
ctest --rerun-failed --output-on-failure