Skip to content

Commit

Permalink
Update windows build runner
Browse files Browse the repository at this point in the history
- Integrated Edge Builds
  • Loading branch information
Codinablack authored Dec 25, 2024
1 parent db26dac commit 77275e0
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/windows_build_runner.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Windows Build

on: [workflow_dispatch, pull_request, push]
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'master'
- '1.0'
- '1.1'
jobs:
job:
name: ${{ matrix.os }}-${{ matrix.buildtype }}
runs-on: ${{ matrix.os }}
permissions:
packages: write
contents: write
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
Expand All @@ -33,7 +39,6 @@ jobs:
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:
Expand All @@ -49,8 +54,31 @@ jobs:
run: |
cd D:\a\BlackTek-Server\BlackTek-Server
msbuild Black-Tek-Server.sln /p:Configuration=Release
cmd /c copy Black-Tek-Server.exe BlackTek-Server-Release.exe
- name: Compile Debug
run: |
cd D:\a\BlackTek-Server\BlackTek-Server
msbuild Black-Tek-Server.sln /p:Configuration=Debug
cmd copy Black-Tek-Server.exe BlackTek-Server-Debug.exe
del Black-Tek-Server.exe
- name: Create Edge Build Release
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
- uses: actions/upload-artifact@v4
with:
name: Windows-Artifact-${{ github.sha }}
path: |
**/BlackTek-Server/**
!**/vcpkg_installed/**
!**/build/**
- uses: elgohr/Github-Release-Action@v5
with:
title: BlackTek-Server-WindowsEdgeBuild-${{ github.sha }}
tag: Windows-Edge-Build-${{ github.sha }}
prerelease: true
- uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.upload_artifact.outputs.artifact_archive }}
asset_name: BlackTek-Server.zip

0 comments on commit 77275e0

Please sign in to comment.