Skip to content

Commit e379ccc

Browse files
committed
update:msbuild.yml
1 parent 7645a90 commit e379ccc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/msbuild.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ jobs:
6161
6262
$url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_x86-32.zip"
6363
Write-Host "Url: $url"
64-
Invoke-WebRequest -Uri $url -OutFile "./XEngine_Windows_x86-32.zip"
64+
65+
try {
66+
# Download the ZIP file
67+
Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_x86-32.zip"
68+
Write-Host "File downloaded successfully."
69+
} catch {
70+
Write-Host "Download failed: $_"
71+
exit 1
72+
}
6573
Expand-Archive -Path ./XEngine_Windows_x86-32.zip -DestinationPath ./XEngine_Windows_x86-32 -Force
6674

6775
echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows_x86-32" | Out-File -FilePath $env:GITHUB_ENV -Append

0 commit comments

Comments
 (0)