add windows build step

This commit is contained in:
Lion Kortlepel
2023-12-05 14:29:09 +01:00
parent 47084841a0
commit bd923acf4e
4 changed files with 46 additions and 0 deletions

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

@@ -0,0 +1,31 @@
name: Windows
on: [push]
jobs:
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
runVcpkgInstall: true
- name: Create Build Environment
shell: bash
run: ./scripts/windows/1-configure.sh '-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake'
- name: Build Server
shell: bash
run: bash ./scripts/windows/2-build.sh
- name: Archive server artifact
uses: actions/upload-artifact@v2
with:
name: BeamMP-Server-windows
path: ./bin/BeamMP-Server.exe