build windows GH action
This commit is contained in:
parent
f7eb7efdad
commit
7deee2fb54
|
|
@ -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
|
||||
Loading…
Reference in New Issue