Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:

jobs:
build:
name: Linux Clang Build
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v5
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/linux_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linux Release

on:
workflow_dispatch:

jobs:
build:
name: Generate Linux x64 Release Artifact
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev

- name: Make Release Build
run: bash Scripts/Linux/MakeReleaseBuild.sh --no-open

- name: Get Version
id: version
run: echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_OUTPUT

- name: Upload Release Artifact
uses: actions/upload-artifact@v4
with:
name: Overload-${{ steps.version.outputs.VERSION }}-linux_x64
path: Releases/Overload-${{ steps.version.outputs.VERSION }}-linux_x64.tar.gz
retention-days: 90
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows MSBuild
name: Windows MSVC

on:
pull_request:
Expand All @@ -18,7 +18,9 @@ env:

jobs:
build:
name: Windows MSVC Build
runs-on: windows-latest
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v5
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Windows Release

on:
workflow_dispatch:

jobs:
build:
name: Generate Windows x64 Release Artifact
runs-on: windows-latest

steps:
- uses: actions/checkout@v5

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Make Release Build
run: .\Scripts\Windows\MakeReleaseBuild.bat --no-open

- name: Get Version
id: version
run: |
$version = Get-Content VERSION.txt
echo "VERSION=$version" >> $env:GITHUB_OUTPUT

- name: Upload Release Artifact
uses: actions/upload-artifact@v4
with:
name: Overload-${{ steps.version.outputs.VERSION }}-win32_x64
path: Releases/Overload-${{ steps.version.outputs.VERSION }}-win32_x64.zip
retention-days: 90
12 changes: 10 additions & 2 deletions Scripts/Linux/MakeReleaseBuild.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash

SCRIPT_DIR="$(dirname "$0")"
NO_OPEN=false

# Parse arguments
for arg in "$@"; do
if [ "$arg" = "--no-open" ]; then
NO_OPEN=true
fi
done

# Build Debug
"$SCRIPT_DIR/BuildAll.sh" debug
Expand Down Expand Up @@ -52,7 +60,7 @@ fi

popd > /dev/null

# Open the output folder in the file manager (if available)
if command -v xdg-open &> /dev/null; then
# Open the output folder in the file manager (if available and not disabled)
if [ "$NO_OPEN" = false ] && command -v xdg-open &> /dev/null; then
xdg-open "$SCRIPT_DIR/../../Releases"
fi
7 changes: 5 additions & 2 deletions Scripts/Windows/MakeReleaseBuild.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pushd "%~dp0"

set NO_OPEN=false
if "%1"=="--no-open" set NO_OPEN=true

call .\BuildAll.bat Debug
if %ERRORLEVEL% neq 0 (
echo Debug build failed. Exiting.
Expand Down Expand Up @@ -46,8 +49,8 @@ if exist ..\Releases\Overload-%version%-%platform% (
echo Temporary build deleted.
)

:: Open the output folder in the file explorer
explorer ..\Releases
:: Open the output folder in the file explorer (if not disabled)
if "%NO_OPEN%"=="false" explorer ..\Releases

:: Return to the original directory
popd
Expand Down