Skip to content

Commit 9ffec0e

Browse files
authored
Retry sccache startup on windows to WAR random auth issues. (#6347)
1 parent 5cb51bd commit 9ffec0e

File tree

1 file changed

+6
-0
lines changed
  • .github/actions/workflow-run-job-windows

1 file changed

+6
-0
lines changed

.github/actions/workflow-run-job-windows/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ runs:
165165
166166
git config --global --add safe.directory '${{steps.paths.outputs.MOUNT_REPO}}'
167167
168+
# We've been seeing intermittent sccache auth issues on Windows. Make a few attempts to
169+
# start the server and authenticate:
170+
sccache --version
171+
try { sccache --stop-server *>&1 | Out-Null } catch {}
172+
& bash -c 'ci/util/retry.sh 5 30 sccache --start-server'
173+
168174
$exitCode = 0
169175
try {
170176
Write-Host "::group::>>>>> Executing command: $env:COMMAND <<<<<"

0 commit comments

Comments
 (0)