Skip to content

Decouple tests from sources (#549) #805

Decouple tests from sources (#549)

Decouple tests from sources (#549) #805

name: msvc
on:
push:
branches:
- 'main'
workflow_dispatch:
pull_request:
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- run: cmake -E make_directory build
- working-directory: build/
run: cmake .. -G "Visual Studio 17 2022" -DBUILD_TESTING:BOOL=ON
- working-directory: build/
run: cmake --build . --config ${{env.BUILD_TYPE}}
- working-directory: build/tests
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure