aboutsummaryrefslogtreecommitdiffstats
path: root/.bazelrc
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2022-01-19 19:26:54 +0100
committerDavid Ostrovsky <d.ostrovsky@gmx.de>2022-01-20 06:43:13 -0400
commit969601c742e4cd059b9ffebf1213ff76785622fe (patch)
tree700c4cc7b62726dd19fd0684fb57b153436ba504 /.bazelrc
parentbe732c16ab1834162ed1c215a695c8b1486add9a (diff)
downloadjgit-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--.bazelrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc
index 7626e5b472..cd4b10d60d 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -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