mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
[CI] Increase retries to 20 with 5s delay after each try
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -175,9 +175,10 @@ jobs:
|
|||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
run: |
|
run: |
|
||||||
$tries = 0
|
$tries = 0
|
||||||
while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
while ($tries -lt 20 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
||||||
$tries++
|
$tries++
|
||||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
||||||
|
sleep -s 5
|
||||||
}
|
}
|
||||||
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 @"
|
||||||
@@ -261,9 +262,10 @@ jobs:
|
|||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
run: |
|
run: |
|
||||||
$tries = 0
|
$tries = 0
|
||||||
while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
while ($tries -lt 20 -and -not (Test-Path "$HOME\installbuilder.exe")) {
|
||||||
$tries++
|
$tries++
|
||||||
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
||||||
|
sleep -s 5
|
||||||
}
|
}
|
||||||
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 @"
|
||||||
|
|||||||
Reference in New Issue
Block a user