@@ -58,3 +58,52 @@ build --strategy=AngularTemplateCompile=worker
5858# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
5959# does not generate factory files which are needed for AOT.
6060build --define=compile=legacy
61+
62+ ################################
63+ # Remote Execution Setup #
64+ ################################
65+
66+ # Use the Angular team internal GCP instance for remote execution.
67+ build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
68+ build:remote --project_id=internal-200822
69+
70+ # Setup the build strategy for various types of actions. Mixing "local" and "remote"
71+ # can cause unexpected results and we want to run everything remotely if possible.
72+ build:remote --spawn_strategy=remote
73+ build:remote --strategy=Javac=remote
74+ build:remote --strategy=Closure=remote
75+ build:remote --strategy=Genrule=remote
76+ build:remote --define=EXECUTOR=remote
77+
78+ # Setup the remote build execution servers.
79+ build:remote --remote_cache=remotebuildexecution.googleapis.com
80+ build:remote --remote_executor=remotebuildexecution.googleapis.com
81+ build:remote --tls_enabled=true
82+ build:remote --auth_enabled=true
83+
84+ # Setup the toolchain and platform for the remote build execution. The platform
85+ # is automatically configured by the "rbe_autoconfig" rule in the project workpsace.
86+ build:remote --crosstool_top=@rbe_default//cc:toolchain
87+ build:remote --host_javabase=@rbe_default//java:jdk
88+ build:remote --javabase=@rbe_default//java:jdk
89+ build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
90+ build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
91+ build:remote --extra_execution_platforms=//tools:rbe_platform
92+ build:remote --host_platform=//tools:rbe_platform
93+ build:remote --platforms=//tools:rbe_platform
94+ build:remote --extra_toolchains=@rbe_default//config:cc-toolchain
95+
96+ # Setup Build Event Service
97+ build:remote --bes_backend=buildeventservice.googleapis.com
98+ build:remote --bes_timeout=30s
99+ build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/"
100+
101+ # Set remote caching settings
102+ build:remote --remote_accept_cached=true
103+
104+ ################################
105+ # Local Environment Setup #
106+ ################################
107+ # Load any settings which are specific to the current user. Needs to be *last* statement
108+ # in this config, as the user configuration should be able to overwrite flags from this file.
109+ try-import .bazelrc.user
0 commit comments