Skip to content

Test Build

Test Build #18

Workflow file for this run

name: Test Build
on:
push:
paths:
- "include/**"
- "src/**"
- "CMakeLists.txt"
- "CMakePresets.json"
workflow_dispatch:
jobs:
test-build:
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
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.38
- name: Build
run: |
cmake -B ./build --preset=build-${{ matrix.preset }}-${{ matrix.compiler }}
cmake --build ./build --preset=${{ matrix.preset }}-${{ matrix.compiler }}