@@ -45,36 +45,35 @@ test --test_output=errors
45
45
46
46
# Configures script to do version stamping.
47
47
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
48
- build:release --workspace_status_command="node ./tools/bazel- stamp-vars.js "
48
+ build:release --workspace_status_command="yarn -s ng-dev release build-env- stamp --mode=release "
49
49
build:release --stamp
50
50
51
- build:snapshot-build --workspace_status_command="node ./tools/bazel-stamp-vars.js -- snapshot"
51
+ build:snapshot-build --workspace_status_command="yarn -s ng-dev release build-env-stamp --mode= snapshot"
52
52
build:snapshot-build --stamp
53
53
54
- ################################
55
- # View Engine / Ivy toggle #
56
- ################################
57
- build:view-engine --define=angular_ivy_enabled=False
58
- build:ivy --define=angular_ivy_enabled=True
54
+ ####################################
55
+ # Bazel custom flags #
56
+ ####################################
57
+ build --flag_alias=partial_compilation=@npm//@angular/bazel/src:partial_compilation
59
58
60
- # Set Ivy as the default
61
- build --config=ivy
59
+ ##################################
60
+ # Always enable Ivy compilation #
61
+ ##################################
62
+ build --define=angular_ivy_enabled=True
62
63
63
64
################################
64
65
# Remote Execution Setup #
65
66
################################
66
67
67
68
# Use the Angular team internal GCP instance for remote execution.
68
- build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
69
+ build:remote --remote_instance_name=projects/internal-200822/instances/primary_instance
69
70
build:remote --project_id=internal-200822
70
71
71
72
# Needed due to: https://github.com/bazelbuild/bazel/issues/7254
72
73
build:remote --define=EXECUTOR=remote
73
74
74
- # For remote execution, we use the `ubuntu16_04_clang` toolchain configurations. These only
75
- # support `k8` or `armeabi-v7a`. Since we run on remotely with `k8` containers, we need to
76
- # ensure that the proper CPU is configured so that the correct toolchain can be used.
77
- # https://github.com/bazelbuild/bazel-toolchains/blob/master/configs/ubuntu16_04_clang/10.0.0/bazel_2.1.0/cc/BUILD#L50
75
+ # Since remote builds run within Google Cloud `k8`-based containers, we set the
76
+ # host and target CPU accordingly.
78
77
build:remote --cpu=k8
79
78
build:remote --host_cpu=k8
80
79
@@ -84,16 +83,21 @@ build:remote --remote_executor=remotebuildexecution.googleapis.com
84
83
build:remote --auth_enabled=true
85
84
86
85
# Setup the toolchain and platform for the remote build execution. The platform
87
- # is automatically configured by the "rbe_autoconfig" rule in the project workpsace.
88
- build:remote --crosstool_top=@rbe_default//cc:toolchain
89
- build:remote --host_javabase=@rbe_default//java:jdk
90
- build:remote --javabase=@rbe_default//java:jdk
91
- build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
92
- build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
93
- build:remote --extra_execution_platforms=//tools:rbe_platform
94
- build:remote --host_platform=//tools:rbe_platform
95
- build:remote --platforms=//tools:rbe_platform
96
- build:remote --extra_toolchains=@rbe_default//config:cc-toolchain
86
+ # is provided by the shared dev-infra package and targets k8 remote containers.
87
+ build:remote --crosstool_top=@npm//@angular/dev-infra-private/bazel/remote-execution/cpp:cc_toolchain_suite
88
+ build:remote --extra_toolchains=@npm//@angular/dev-infra-private/bazel/remote-execution/cpp:cc_toolchain
89
+ build:remote --extra_execution_platforms=@npm//@angular/dev-infra-private/bazel/remote-execution:platform_with_network
90
+ build:remote --host_platform=@npm//@angular/dev-infra-private/bazel/remote-execution:platform_with_network
91
+ build:remote --platforms=@npm//@angular/dev-infra-private/bazel/remote-execution:platform_with_network
92
+
93
+ ################################
94
+ # Sandbox settings #
95
+ ################################
96
+
97
+ # By default, network access should be disabled unless explicitly granted for certain targets
98
+ # using the `requires-network` tag. https://docs.bazel.build/versions/main/be/common-definitions.html
99
+ build --sandbox_default_allow_network=false
100
+ test --sandbox_default_allow_network=false
97
101
98
102
################################
99
103
# --config=build-results #
0 commit comments