-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf4a206
commit bed3b9e
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Windows Build | ||
|
||
on: [workflow_dispatch, pull_request, push] | ||
jobs: | ||
job: | ||
name: ${{ matrix.os }}-${{ matrix.buildtype }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2022] | ||
buildtype: [windows-release, windows-release-asan, windows-debug] | ||
include: | ||
- os: windows-2022 | ||
triplet: x64-windows | ||
packages: > | ||
sccache | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
|
||
- name: Ensure Correct VCPKG Version | ||
uses: lukka/run-vcpkg@main | ||
with: | ||
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | ||
vcpkgGitCommitId: ${{ steps.vcpkg-step.outputs.vcpkgGitCommitId }} | ||
|
||
- name: Setup Premake & Generate Solution | ||
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 | ||
D:\a\BlackTek-Server\BlackTek-Server\premake5.exe vs2022 | ||
- name: Configure Package Manager | ||
uses: egor-tensin/vs-shell@v2 | ||
with: | ||
arch: x64 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd D:\a\BlackTek-Server | ||
vcpkg install --triplet x64-windows | ||
vcpkg integrate install | ||
- name: Compile Release | ||
run: | | ||
cd D:\a\BlackTek-Server\BlackTek-Server | ||
msbuild Black-Tek-Server.sln /p:Configuration=Release | ||
- name: Compile Debug | ||
run: | | ||
cd D:\a\BlackTek-Server\BlackTek-Server | ||
msbuild Black-Tek-Server.sln /p:Configuration=Debug |