mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[CI] Retry 5 times when downloading InstallBuilder on Windows
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -174,7 +174,11 @@ jobs:
|
||||
extra: --archives qtbase
|
||||
- name: Download InstallBuilder
|
||||
run: |
|
||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
||||
$tries = 0
|
||||
while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
||||
$tries++
|
||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
||||
}
|
||||
start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder")
|
||||
echo >$HOME\license.xml @"
|
||||
$env:BITROCK_LICENSE
|
||||
@@ -256,7 +260,11 @@ jobs:
|
||||
extra: --archives qtbase
|
||||
- name: Download InstallBuilder
|
||||
run: |
|
||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
||||
$tries = 0
|
||||
while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
||||
$tries++
|
||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
||||
}
|
||||
start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder")
|
||||
echo >$HOME\license.xml @"
|
||||
$env:BITROCK_LICENSE
|
||||
|
||||
Reference in New Issue
Block a user