-
Notifications
You must be signed in to change notification settings - Fork 21
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
131244b
commit 339e21d
Showing
1 changed file
with
46 additions
and
2 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Linux Build | |
on: [workflow_dispatch, pull_request, push] | ||
|
||
jobs: | ||
linux_build: | ||
linux_build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -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 |