mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
CI: add some retry on Proxspace initialization
This commit is contained in:
@@ -46,7 +46,16 @@ jobs:
|
||||
|
||||
- name: ProxSpace initial startup
|
||||
working-directory: C:\ProxSpace
|
||||
run: ./runme64.bat -c "exit"
|
||||
run: |
|
||||
$maxAttempts = 3
|
||||
$delay = 20
|
||||
for ($i = 1; $i -le $maxAttempts; $i++) {
|
||||
Write-Host "Attempt $i..."
|
||||
./runme64.bat -c "exit"
|
||||
if ($LASTEXITCODE -eq 0) { exit 0 }
|
||||
if ($i -lt $maxAttempts) { Start-Sleep -Seconds $delay }
|
||||
}
|
||||
exit 1
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user