mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +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
|
extra: --archives qtbase
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
run: |
|
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")
|
start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder")
|
||||||
echo >$HOME\license.xml @"
|
echo >$HOME\license.xml @"
|
||||||
$env:BITROCK_LICENSE
|
$env:BITROCK_LICENSE
|
||||||
@@ -256,7 +260,11 @@ jobs:
|
|||||||
extra: --archives qtbase
|
extra: --archives qtbase
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
run: |
|
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")
|
start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder")
|
||||||
echo >$HOME\license.xml @"
|
echo >$HOME\license.xml @"
|
||||||
$env:BITROCK_LICENSE
|
$env:BITROCK_LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user