aboutsummaryrefslogtreecommitdiffstats
path: root/WORKSPACE
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 /WORKSPACE
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 'WORKSPACE')
-rw-r--r--WORKSPACE10
1 files changed, 10 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 1d0aaceeb8..040617e8a6 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -10,6 +10,16 @@ load(
"maven_jar",
)
+http_archive(
+ name = "rbe_jdk11",
+ sha256 = "766796de71916118e528b9f4334c29c9c9b4e926227bf3264dee555e6a4306c8",
+ strip_prefix = "rbe_autoconfig-2.0.0",
+ urls = [
+ "https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v2.0.0.tar.gz",
+ "https://github.com/davido/rbe_autoconfig/archive/v2.0.0.tar.gz",
+ ],
+)
+
register_toolchains("//tools:error_prone_warnings_toolchain_java11_definition")
register_toolchains("//tools:error_prone_warnings_toolchain_java17_definition")