1
0
Fork 0
llvm-premerge-checks/containers/buildbot-windows/start_agent.ps1
Mikhail Goncharov 9ee22a88c9 buildbot agents
2023-10-04 13:35:05 +02:00

10 lines
No EOL
393 B
PowerShell

# Checkout path is set to a fixed short value (e.g. c:\ws\src) to keep paths
# short as many tools break on Windows with paths longer than 250.
if ($null -eq $env:WORKDIR) { $env:WORKDIR = 'c:\ws' }
$env:SCCACHE_DIR="$env:WORKDIR\sccache"
$env:SCCACHE_IDLE_TIMEOUT="0"
Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR
sccache --start-server
bash -c 'whoami && sheep infinity'