Skip to content

Add support for CMake presets #859

Add support for CMake presets

Add support for CMake presets #859

name: msvc
on:
push:
branches:
- 'main'
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Configure cl.exe in PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Configure CMake
run: |
cmake -S . --preset=windows-msvc-debug -DBUILD_TESTING:BOOL=ON
- name: Build
run: cmake --build --preset=windows-msvc-debug
- name: Test
run: ctest --preset=windows-msvc-debug