Skip to content

Commit

Permalink
Add Edge Builds to windows workflow
Browse files Browse the repository at this point in the history
First try at doing released edge builds (basically nightlies).

- Added explicit creation of both release and debug executables
- Removed Scache
- Added automated creation, tag and upload of edge builds after accepted commits and prs have been merged into master, 1.0 and 1.1 branches (don't exist yet)
  • Loading branch information
Codinablack authored Dec 25, 2024
1 parent db26dac commit e939353
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/windows_build_runner.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
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 }}
Expand All @@ -12,9 +18,6 @@ jobs:
include:
- os: windows-2022
triplet: x64-windows
packages: >
sccache
steps:
- name: Checkout repository
uses: actions/checkout@main
Expand Down Expand Up @@ -49,8 +52,27 @@ jobs:
run: |
cd D:\a\BlackTek-Server\BlackTek-Server
msbuild Black-Tek-Server.sln /p:Configuration=Release
copy /Y 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
copy /Y 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: softprops/action-gh-release@v2
with:
tag_name: Windows-Edge-Build-${{ github.sha }}
name: BlackTek-Server-WindowsEdgeBuild-${{ github.sha }}
body: |
Windows Edge build from commit ${{ github.sha }}
Commit message: ${{ github.event.head_commit.message }}
Build date: ${{ github.event.head_commit.timestamp }}
prerelease: true
files: |
BlackTek-Server
!**./vcpkg_installed/**
!**./build/**

0 comments on commit e939353

Please sign in to comment.