1
0
Fork 0
llvm-premerge-checks/containers/agent-windows-buildkite/start_agent.ps1
Mikhail Goncharov 8960ff7dc9 Pre-checkout for windows
Kill all running processes in BUILDKITE_BUILD_PATH and force unlock git
folder.
2021-06-01 15:26:23 +02:00

10 lines
473 B
PowerShell

c:\credentials\buildkite-env.ps1
git clone https://github.com/google/llvm-premerge-checks.git c:\llvm-premerge-checks
# Install Buildkite agent.
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
$env:SCCACHE_DIR="C:\ws\sccache"
$env:SCCACHE_IDLE_TIMEOUT="0"
Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR
sccache --start-server
C:\buildkite-agent\bin\buildkite-agent.exe start