1
0
Fork 0
llvm-premerge-checks/containers/buildbot-windows/entrypoint.sh

24 lines
1,022 B
Bash
Raw Permalink Normal View History

2023-10-04 13:35:05 +02:00
echo "buildbot windows entrypoint"
2023-10-05 15:37:06 +02:00
: ${WORKDIR:=/c/ws}
echo "WORKDIR $WORKDIR"
mkdir -p "$WORKDIR"
echo "starting sccache"
export SCCACHE_DIR="$WORKDIR/sccache"
export SCCACHE_IDLE_TIMEOUT="0"
export SCCACHE_CACHE_SIZE=20G
sccache --start-server
sccache --show-stats
echo "configure buildbot"
2023-10-04 13:35:05 +02:00
mkdir -p /c/ws/buildbbot
2023-10-05 15:37:06 +02:00
buildbot-worker create-worker /c/ws/buildbot $BUILDBOT_ADDRESS $BUILDBOT_NAME $BUILDBOT_PASSWORD
2023-11-03 17:20:45 +01:00
unset BUILDBOT_ADDRESS
unset BUILDBOT_NAME
unset BUILDBOT_PASSWORD
echo "llvm-premerge-buildbots <llvm-premerge-buildbots@google.com>, Mikhail Goncharov<goncharov.mikhail@gmail.com>" > /c/ws/buildbot/info/admin
echo "Setup analogous to windows agent for Pull Request checks:" > /c/ws/buildbot/info/host
echo "GCP machine c2d-standard-32 AMD2 32vCPU 128Gb" >> /c/ws/buildbot/info/host
echo "Windows ltsc2019 vs-2019 LLVM-16+ python 3.9.7 cmake" >> /c/ws/buildbot/info/host
2023-10-30 11:00:38 +01:00
echo "https://github.com/google/llvm-premerge-checks/blob/main/containers/buildbot-windows/Dockerfile" >> /c/ws/buildbot/info/host
2023-10-04 13:35:05 +02:00
$@