@@ -6,3 +6,57 @@ build --strategy=TypeScriptCompile=worker
66build --watchfs
77
88test --test_output=errors
9+
10+ ################################
11+ # Remote Execution Setup #
12+ ################################
13+
14+ # Use the Angular team internal GCP instance for remote execution.
15+ build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
16+ build:remote --project_id=internal-200822
17+
18+ # Setup the build strategy for various types of actions. Mixing "local" and "remote"
19+ # can cause unexpected results and we want to run everything remotely if possible.
20+ build:remote --spawn_strategy=remote
21+ build:remote --strategy=Javac=remote
22+ build:remote --strategy=Closure=remote
23+ build:remote --strategy=Genrule=remote
24+ build:remote --define=EXECUTOR=remote
25+
26+ # Setup the remote build execution servers.
27+ build:remote --remote_cache=remotebuildexecution.googleapis.com
28+ build:remote --remote_executor=remotebuildexecution.googleapis.com
29+ build:remote --tls_enabled=true
30+ build:remote --auth_enabled=true
31+ build:remote --remote_timeout=3600
32+ build:remote --jobs=50
33+
34+ # Setup the toolchain and platform for the remote build execution. The platform
35+ # is automatically configured by the "rbe_autoconfig" rule in the project workpsace.
36+ build:remote --host_javabase=@rbe_ubuntu1604_angular//java:jdk
37+ build:remote --javabase=@rbe_ubuntu1604_angular//java:jdk
38+ build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
39+ build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
40+ build:remote --crosstool_top=@rbe_ubuntu1604_angular//cc:toolchain
41+ build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
42+ build:remote --extra_toolchains=@rbe_ubuntu1604_angular//config:cc-toolchain
43+ build:remote --extra_execution_platforms=//tools:rbe_ubuntu1604-angular
44+ build:remote --host_platform=//tools:rbe_ubuntu1604-angular
45+ build:remote --platforms=//tools:rbe_ubuntu1604-angular
46+
47+ # Setup Build Event Service
48+ build:remote --bes_backend=buildeventservice.googleapis.com
49+ build:remote --bes_timeout=30s
50+ build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/"
51+
52+ # Set remote caching settings
53+ build:remote --remote_accept_cached=true
54+
55+ ####################################################
56+ # User bazel configuration
57+ # NOTE: This needs to be the *last* entry in the config.
58+ ####################################################
59+
60+ # Load any settings which are specific to the current user. Needs to be *last* statement
61+ # in this config, as the user configuration should be able to overwrite flags from this file.
62+ try-import .bazelrc.user
0 commit comments