not sure why windows is failing, hope this fixes it. #117
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Build | |
on: [workflow_dispatch, pull_request, push] | |
jobs: | |
build: | |
name: ${{ matrix.os }}-${{ matrix.configuration }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022] | |
configuration: | |
- ReleaseDynamic | |
- ReleaseStatic | |
- DebugDynamic | |
- DebugStatic | |
include: | |
- os: windows-2022 | |
triplet: x64-windows | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install vcpkg | |
uses: lukka/run-vcpkg@v10 | |
with: | |
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | |
vcpkgGitCommitId: "215a2535590f1f63788ac9bd2ed58ad15e6afdff" | |
- name: Setup Premake | |
run: | | |
git clone https://github.com/premake/premake-core | |
cd premake-core | |
cmd /c Bootstrap.bat | |
move .\bin\release\premake5.exe D:\a\BlackTek-Server\BlackTek-Server\premake5.exe | |
cd D:\a\BlackTek-Server\BlackTek-Server | |
- name: Generate Solution | |
run: | | |
D:\a\BlackTek-Server\BlackTek-Server\premake5.exe vs2022 | |
- name: Install Dependencies | |
run: | | |
if [[ "${{ matrix.configuration }}" == *Static ]]; then | |
vcpkg install --triplet=x64-windows-static | |
else | |
vcpkg install | |
fi | |
vcpkg integrate install | |
- name: Build Project | |
run: | | |
cd D:\a\BlackTek-Server\BlackTek-Server | |
msbuild Black-Tek-Server.sln /p:Configuration=${{ matrix.configuration }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: BlackTek-Server-${{ matrix.os }}-${{ matrix.configuration }} | |
path: | | |
Black-Tek-Server.exe |