build windows GH action

This commit is contained in:
Alejandro Juan Pérez 2025-04-01 13:37:55 +02:00
parent f7eb7efdad
commit 7deee2fb54
1 changed files with 27 additions and 0 deletions

27
.github/workflows/build-windows.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Build on Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: # Allow manual triggering of the workflow
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
- name: Configure CMake
run: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}\scripts\buildsystems\vcpkg.cmake
- name: Build project
run: cmake --build build --config Release