diff options
author | David Ostrovsky <david@ostrovsky.org> | 2022-01-19 19:26:54 +0100 |
---|---|---|
committer | David Ostrovsky <d.ostrovsky@gmx.de> | 2022-01-20 06:43:13 -0400 |
commit | 969601c742e4cd059b9ffebf1213ff76785622fe (patch) | |
tree | 700c4cc7b62726dd19fd0684fb57b153436ba504 /.bazelrc | |
parent | be732c16ab1834162ed1c215a695c8b1486add9a (diff) | |
download | jgit-969601c742e4cd059b9ffebf1213ff76785622fe.tar.gz jgit-969601c742e4cd059b9ffebf1213ff76785622fe.zip |
Bazel: Add RBE support
The Bazel build can be used with Google's Remote Build Execution.
This needs the following setup steps:
$ gcloud auth application-default login
$ gcloud services enable remotebuildexecution.googleapis.com --project=${PROJECT}
Create a worker pool. The instances should have at least 4 CPUs each
for adequate performance.
$ gcloud alpha remote-build-execution worker-pools create default \
--project=${PROJECT} \
--instance=default_instance \
--worker-count=50 \
--machine-type=e2-standard-4 \
--disk-size=200
To use RBE, execute
$ bazel test --config=remote \
--remote_instance_name=projects/${PROJECT}/instances/default_instance \
//...
Change-Id: I988f61e342dab2136d8752ace945a4ed91a4189a
Diffstat (limited to '.bazelrc')
-rw-r--r-- | .bazelrc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -10,12 +10,24 @@ build --java_runtime_version=remotejdk_11 build --tool_java_language_version=11 build --tool_java_runtime_version=remotejdk_11 +# Builds and executes on RBE using remotejdk_11 +build:remote --java_language_version=11 +build:remote --java_runtime_version=remotejdk_11 +build:remote --tool_java_language_version=11 +build:remote --tool_java_runtime_version=remotejdk_11 + # Builds using remote_jdk17, executes using remote_jdk11 or local_jdk build:java17 --java_language_version=17 build:java17 --java_runtime_version=remotejdk_17 build:java17 --tool_java_language_version=17 build:java17 --tool_java_runtime_version=remotejdk_17 +# Builds and executes on RBE using remotejdk_17 +build:remote17 --java_language_version=17 +build:remote17 --java_runtime_version=remotejdk_17 +build:remote17 --tool_java_language_version=17 +build:remote17 --tool_java_runtime_version=remotejdk_17 + test --build_tests_only test --test_output=errors |