kokoro: Update bazel to 7.0.2 for Mac builds (#5606)

This commit is contained in:
David Neto 2024-03-11 12:57:43 -04:00 committed by GitHub
parent 04896c462d
commit d15a7aa25d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,14 +32,14 @@ git config --global --add safe.directory $SRC
cd $SRC
/usr/bin/python3 utils/git-sync-deps --treeless
# Get bazel 5.0.0
gsutil cp gs://bazel/5.0.0/release/bazel-5.0.0-darwin-x86_64 .
chmod +x bazel-5.0.0-darwin-x86_64
# Get bazel 7.0.2
gsutil cp gs://bazel/7.0.2/release/bazel-7.0.2-darwin-x86_64 .
chmod +x bazel-7.0.2-darwin-x86_64
echo $(date): Build everything...
./bazel-5.0.0-darwin-x86_64 build --cxxopt=-std=c++17 :all
./bazel-7.0.2-darwin-x86_64 build --cxxopt=-std=c++17 :all
echo $(date): Build completed.
echo $(date): Starting bazel test...
./bazel-5.0.0-darwin-x86_64 test --cxxopt=-std=c++17 :all
./bazel-7.0.2-darwin-x86_64 test --cxxopt=-std=c++17 :all
echo $(date): Bazel test completed.