try fix workflows

This commit is contained in:
luis
2026-08-06 08:43:30 -03:00
parent e02863b0c3
commit f4b1d0f2d8
+11 -9
View File
@@ -86,21 +86,23 @@ jobs:
Copy-Item "${{ env.OPENSSL_ROOT_DIR }}/bin/libcrypto-3-x64.dll" . -ErrorAction SilentlyContinue
Copy-Item "${{ env.OPENSSL_ROOT_DIR }}/bin/libssl-3-x64.dll" . -ErrorAction SilentlyContinue
Copy-Item "${{ env.OPENSSL_ROOT_DIR }}/bin/legacy.dll" . -ErrorAction SilentlyContinue
foreach ($dll in @("libmysql.dll", "libssl-3-x64.dll", "libcrypto-3-x64.dll"))
{
if (-not (Test-Path $dll)) { Write-Error "Missing required DLL: $dll"; exit 1 }
}
Get-ChildItem *.dll | ForEach-Object { Write-Output " $($_.Name) ($($_.Length) bytes)" }
Copy-Item "${{ env.MYSQL_ROOT_DIR }}/bin/zlib1.dll" . -ErrorAction SilentlyContinue
- name: Check binaries
shell: pwsh
run: |
cd build/bin/${{ env.CMAKE_BUILD_TYPE }}
cmd.exe /c "bnetserver.exe --version"
Write-Output "bnetserver exit: $LASTEXITCODE"
cmd.exe /c "worldserver.exe --version"
Write-Output "worldserver exit: $LASTEXITCODE"
foreach ($exe in @("bnetserver.exe", "worldserver.exe"))
{
if (-not (Test-Path $exe)) { Write-Error "Missing binary: $exe"; exit 1 }
if ((Get-Item $exe).Length -lt 1MB) { Write-Error "Suspiciously small binary: $exe"; exit 1 }
}
Write-Output "Required binaries present. Version smoke test (may fail to start in the ephemeral runner DLL env):"
cmd.exe /c "bnetserver.exe --version" 2>&1 | ForEach-Object { Write-Output " bnetserver: $_" }
cmd.exe /c "worldserver.exe --version" 2>&1 | ForEach-Object { Write-Output " worldserver: $_" }
Get-ChildItem *.dll | ForEach-Object { Write-Output " $($_.Name) ($($_.Length) bytes)" }
Write-Output "Binary + package validation passed."
exit 0
- name: Create zip
shell: pwsh