Skip to content

Nightly (Experimental) Build #23

Nightly (Experimental) Build

Nightly (Experimental) Build #23

Workflow file for this run

name: Nightly (Experimental) Build
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
schedule:
- cron: "0 3 * * *" # 03:00 UTC daily
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Run generate-nightly.bat to create solution
run: |
echo "Running generate-nightly.bat to produce Client.sln..."
call generate-nightly.bat
shell: cmd
working-directory: ${{ github.workspace }}
- name: Verify Client.sln exists
run: dir build
shell: pwsh
- name: Clean old d3d9.dll
run: |
$dllPath = "build/bin/Release/d3d9.dll"
if (Test-Path $dllPath) {
Write-Host "Removing old d3d9.dll..."
Remove-Item $dllPath -Force
} else {
Write-Host "No old DLL found, skipping."
}
shell: pwsh
- name: Build solution
run: msbuild build\consolation-client.sln /p:Configuration=Release /p:OutDir=bin/Release/
shell: pwsh
working-directory: ${{ github.workspace }}
- name: Get short commit hash
id: shortsha
run: |
$short = $env:GITHUB_SHA.Substring(0, 7)
Write-Output "short_sha=$short" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
shell: pwsh
- name: Create/Update Nightly Release and upload d3d9.dll
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: Nightly Build
body: Nightly build from commit ${{ steps.shortsha.outputs.short_sha }}
draft: false
prerelease: true
overwrite: true
files: build/bin/Release/d3d9.dll