Skip to content

Commit 8a4c0b6

Browse files
committed
fix missing exe
1 parent 034182f commit 8a4c0b6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,16 @@ jobs:
5858
$runDir = "$env:GITHUB_WORKSPACE\Run"
5959
$dataDir = "$runDir"
6060
$testsDir = "$runDir\Tests"
61+
$buildExe = "$env:GITHUB_WORKSPACE\Projects\VS\${{ matrix.configuration }}\openfodder.exe"
62+
$buildDir = "$env:GITHUB_WORKSPACE\Projects\VS\${{ matrix.configuration }}"
6163
New-Item -ItemType Directory -Path $runDir -Force | Out-Null
64+
if (-not (Test-Path $buildExe)) {
65+
Write-Error "Built executable not found at $buildExe"
66+
exit 1
67+
}
68+
Copy-Item $buildExe -Destination "$runDir\openfodder.exe" -Force
69+
Copy-Item "$buildDir\SDL3.dll" -Destination $runDir -Force
70+
Copy-Item "$buildDir\SDL3_mixer.dll" -Destination $runDir -Force
6271
if (Test-Path "$dataDir\.git") {
6372
git -C $dataDir pull
6473
} else {

0 commit comments

Comments
 (0)