Skip to content

Test Build

Test Build #21

Workflow file for this run

name: Test Build
on:
push:
branches: main
paths:
- "include/**"
- "src/**"
- "CMakeLists.txt"
- "CMakePresets.json"
workflow_dispatch:
jobs:
test-build:
runs-on: windows-latest
strategy:
matrix:
preset:
- debug
- release
compiler:
- msvc
- clang-cl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Setup MSVC prompt
uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
toolset: 14.37
- name: Build
run: |
cmake -B .\build\${{ matrix.preset }}-${{ matrix.compiler }} --preset=build-${{ matrix.preset }}-${{ matrix.compiler }}
cmake --build .\build\${{ matrix.preset }}-${{ matrix.compiler }} --preset=${{ matrix.preset }}-${{ matrix.compiler }}