fix(sign.ps1): run artifact unzipping in parallel using jobs

This commit is contained in:
Mr. M
2025-04-14 14:09:48 +02:00
parent ff35c58787
commit 0a61c26cc1

View File

@@ -86,14 +86,21 @@ function DownloadArtifacts($name) {
echo "Downloading artifact to $tempFile"
DownloadFile $artifactUrl $tempFile
echo "Unzipping artifact to $outputPath"
Expand-Archive -Path $tempFile -DestinationPath $outputPath -Force
echo "Unzipped artifact to $outputPath"
Start-Job -Name "UnzipArtifact$name" -ScriptBlock {
param($tempFile, $outputPath)
echo "Unzipping artifact to $outputPath"
Expand-Archive -Path $tempFile -DestinationPath $outputPath -Force
echo "Unzipped artifact to $outputPath"
} -ArgumentList $tempFile, $outputPath -ErrorAction SilentlyContinue
}
DownloadArtifacts arm64
DownloadArtifacts x86_64
# Wait for the jobs to finish
Wait-Job -Name "UnzipArtifactarm64"
Wait-Job -Name "UnzipArtifactx86_64"
mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue
# Collect all .exe and .dll files into a list