1
hermetic_cc_toolchain/.buildkite/setup-bazelrc.sh
Motiejus Jakštys af9360366b
More CI (#3)
- ci only: use a separate zig cache dir for each run
- use `tools/bazel` everywhere.
- remove arm64 tests. They don't give enough value to be worth the
  brittle environment.
- remove windows execution, except for launcher. Ditto. I will probably
  bring them back.
2023-03-06 17:32:48 +02:00

16 lines
487 B
Bash
Executable File

# Copyright 2023 Uber Technologies, Inc.
# Licensed under the Apache License, Version 2.0
if [ -z "${BUILDKITE_BUILD_NUMBER:-}" ]; then
>&2 echo "error: expected to run in buildkite"
exit 1
fi
export BAZEL_ZIG_CC_CACHE_PREFIX="/tmp/bazel-zig-cc${BUILDKITE_BUILD_NUMBER}"
mkdir -p "$BAZEL_ZIG_CC_CACHE_PREFIX"
cat > .custom.ci.bazelrc <<EOF
common --repo_env BAZEL_ZIG_CC_CACHE_PREFIX="$BAZEL_ZIG_CC_CACHE_PREFIX"
build --sandbox_writable_path "$BAZEL_ZIG_CC_CACHE_PREFIX"
EOF