Skip to content

Commit

Permalink
[ci] Make bazel remote cache URL optional (ray-project#41525)
Browse files Browse the repository at this point in the history
only enable bazel remote cache when `BUILDKITE_BAZEL_CACHE_URL` env var is set. This makes `--config=ci` usable without bazel remote cache.

Signed-off-by: Gabor Somogyi <[email protected]>
  • Loading branch information
gaborgsomogyi authored Dec 15, 2023
1 parent c1ddfae commit 15f9f19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/build/build-manylinux-forge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ ln -sf "$(which bazelisk)" /usr/local/bin/bazel
echo "build --config=ci"
echo "build --announce_rc"
echo "build --incompatible_linkopts_to_linklibs"
echo "build:ci --remote_cache=${BUILDKITE_BAZEL_CACHE_URL}"
if [[ "${BUILDKITE_BAZEL_CACHE_URL:-}" != "" ]]; then
echo "build:ci --remote_cache=${BUILDKITE_BAZEL_CACHE_URL:-}"
fi
} > ~/.bazelrc

0 comments on commit 15f9f19

Please sign in to comment.