Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
8.7.0
1 change: 0 additions & 1 deletion WORKSPACE

This file was deleted.

Empty file added WORKSPACE.bzlmod
Empty file.
10 changes: 5 additions & 5 deletions kokoro/macos-clang-release-bazel/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ git config --global --add safe.directory $SRC
cd $SRC
/usr/bin/python3 utils/git-sync-deps

# Get bazel 7.4.0
BAZELVER=8.7.0
gcloud config set auth/disable_credentials True
gcloud storage cp gs://bazel/7.4.0/release/bazel-7.4.0-darwin-x86_64 .
chmod +x bazel-7.4.0-darwin-x86_64
gcloud storage cp gs://bazel/$BAZELVER/release/bazel-$BAZELVER-darwin-x86_64 .
chmod +x bazel-$BAZELVER-darwin-x86_64

echo $(date): Build everything...
./bazel-7.4.0-darwin-x86_64 build --cxxopt=-std=c++17 :all
./bazel-$BAZELVER-darwin-x86_64 build --cxxopt=-std=c++17 :all
echo $(date): Build completed.

echo $(date): Starting bazel test...
./bazel-7.4.0-darwin-x86_64 test --cxxopt=-std=c++17 :all
./bazel-$BAZELVER-darwin-x86_64 test --cxxopt=-std=c++17 :all
echo $(date): Bazel test completed.
2 changes: 1 addition & 1 deletion kokoro/scripts/linux/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ if [ $TOOL = "cmake" ]; then
ctest --output-on-failure --timeout 300
echo $(date): ctest completed.
elif [ $TOOL = "bazel" ]; then
using bazel-7.4.0
using bazel-8.7.0

echo $(date): Build everything...
bazel build --cxxopt=-std=c++17 :all
Expand Down
9 changes: 8 additions & 1 deletion kokoro/scripts/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,21 @@ function chown_dir() {
fi
}

# Set up a volume mapping for kokoro artifacts only if the corresponding
# env var exists. The env var will not exist when manally testing this script.
ARTIFACTS_MAPPING=
if [ -n "${KOKORO_ARTIFACTS_DIR}" ]; then
ARTIFACTS_MAPPING="--volume ${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}"
fi

set +e
# Allow build failures

# "--privileged" is required to run ptrace in the asan builds.
docker run --rm -i \
--privileged \
--volume "${ROOT_DIR}:${ROOT_DIR}" \
--volume "${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}" \
$ARTIFACTS_MAPPING \
--workdir "${ROOT_DIR}" \
--env SCRIPT_DIR=${SCRIPT_DIR} \
--env ROOT_DIR=${ROOT_DIR} \
Expand Down