From cccb8431fd34652a6c7775f28a7f959ec4c53e5f Mon Sep 17 00:00:00 2001 From: dneto Date: Sat, 24 Oct 2026 13:11:43 -0400 Subject: [PATCH] [bazel] on mac, download arch-specific bazel binary --- kokoro/macos-clang-release-bazel/build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kokoro/macos-clang-release-bazel/build.sh b/kokoro/macos-clang-release-bazel/build.sh index 037609a..cabaabd 100644 --- a/kokoro/macos-clang-release-bazel/build.sh +++ b/kokoro/macos-clang-release-bazel/build.sh @@ -33,14 +33,15 @@ cd $SRC /usr/bin/python3 utils/git-sync-deps BAZELVER=8.7.0 +BAZEL_PROG=bazel-$BAZELVER-darwin-$(uname -m) gcloud config set auth/disable_credentials True -gcloud storage cp gs://bazel/$BAZELVER/release/bazel-$BAZELVER-darwin-x86_64 . -chmod +x bazel-$BAZELVER-darwin-x86_64 +gcloud storage cp gs://bazel/$BAZELVER/release/$BAZEL_PROG . +chmod +x $BAZEL_PROG echo $(date): Build everything... -./bazel-$BAZELVER-darwin-x86_64 build --cxxopt=-std=c++17 :all +./$BAZEL_PROG build --cxxopt=-std=c++17 :all echo $(date): Build completed. echo $(date): Starting bazel test... -./bazel-$BAZELVER-darwin-x86_64 test --cxxopt=-std=c++17 :all +./$BAZEL_PROG test --cxxopt=-std=c++17 :all echo $(date): Bazel test completed.