Skip to content

Commit c114327

Browse files
committed
Better retry support (if one build has already finished)
1 parent fcefc6c commit c114327

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cef_build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,20 @@ $MAX_FAILURES=20;
3535
$x86_fails=0;
3636
$x64_fails=0;
3737
#There can be a race conditions we try to patch out the media failures one above
38-
while (! $px86.HasExited -or ! $px64.HasExited){
38+
while ($true){
39+
$retry=$false;
3940
if ($px86.HasExited -and $px86.ExitCode -ne 0 -and $x86_fails -lt $MAX_FAILURES){
4041
$x86_fails++;
4142
$px86 = RunBuild -build_args_add $build_args_add -version "x86";
43+
$retry=$true;
4244
}
4345
if ($px64.HasExited -and $px64.ExitCode -ne 0 -and $x64_fails -lt $MAX_FAILURES){
4446
$x64_fails++;
4547
$px64 = RunBuild -build_args_add $build_args_add -version "x64";
48+
$retry=$true;
49+
}
50+
if ($px64.HasExited -and $px86.HasExited -and ! $retry){
51+
break;
4652
}
4753
Start-Sleep -s 15
4854
}

0 commit comments

Comments
 (0)