Skip to content

Commit

Permalink
Linux Edge Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Codinablack authored Dec 29, 2024
1 parent 131244b commit 339e21d
Showing 1 changed file with 46 additions and 2 deletions.
48 changes: 46 additions & 2 deletions .github/workflows/linux_build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Linux Build
on: [workflow_dispatch, pull_request, push]

jobs:
linux_build:
linux_build:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,11 +41,55 @@ jobs:
- name: Install Vcpkg Libraries
run: |
vcpkg install
- name: Compile Release 64
run: |
make -j $(nproc) config=release_64
cp Black-Tek-Server.exe BlackTek-Server-Release.exe
- name: Compile Debug 64
run: |
make -j $(nproc) config=debug_64
cp Black-Tek-Server.exe BlackTek-Server-Debug.exe
rm Black-Tek-Server.exe
- name: Cleanup Vcpkg_installed
uses: JesseTG/[email protected]
with:
path: ${{ github.workspace }}/vcpkg_installed

- name: Cleanup Intermediaries
uses: JesseTG/[email protected]
with:
path: ${{ github.workspace }}/build

- name: Cleanup More VCPKG stuff
uses: JesseTG/[email protected]
with:
path: ${{ github.workspace }}/vcpkg

- name: Cleanup Premake-Core
uses: JesseTG/[email protected]
with:
path: ${{ github.workspace }}/premake-core

- name: Prepare Compressed Assets
run: |
echo "Commit SHA: ${{ github.sha }}" > version.info
zip -r BlackTek-Server.zip ${{ github.workspace }}
zip -r BlackTek-Server.zip version.info
- name: Upload Assets for Edge Build
if: (github.event_name == 'push') && (matrix.os == 'ubuntu-24.04') && !startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && (matrix.os == 'ubuntu-24.04') && github.event.pull_request.merged == true)
uses: softprops/action-gh-release@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
tag_name: Linux-Edge-Build
name: BlackTek Server Edge Build
body: |
This is an automated Linux Edge build for commit ${{ github.sha }}
OS-BuildType: ${{ matrix.buildtype }}
Build date: ${{ github.event.head_commit.timestamp }}
files: BlackTek-Server-${{ github.sha }}.zip

0 comments on commit 339e21d

Please sign in to comment.