File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # Import config items common to both Linux and Windows setups.
2
+ # https://docs.bazel.build/versions/master/guide.html#bazelrc-syntax-and-semantics
3
+ import %workspace%/.circleci/bazel.common.rc
4
+
5
+ build --config=remote
Original file line number Diff line number Diff line change
1
+ # Import config items common to both Linux and Windows setups.
2
+ # https://docs.bazel.build/versions/master/guide.html#bazelrc-syntax-and-semantics
3
+ import %workspace%/.circleci/bazel.common.rc
4
+
5
+ build --remote_cache=https://storage.googleapis.com/angular-cli-windows-bazel-cache
6
+ build --remote_accept_cached=true
7
+ build --remote_upload_local_results=true
8
+ build --google_default_credentials
Original file line number Diff line number Diff line change @@ -144,9 +144,19 @@ commands:
144
144
type : env_var_name
145
145
default : CIRCLE_PROJECT_REPONAME
146
146
steps :
147
- - run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
147
+ - run :
148
+ name : ' Copy Bazel RC'
149
+ shell : bash
150
+ command : |
151
+ # Conditionally, copy bazel configuration based on the current VM
152
+ # operating system running. We detect Windows by checking for `%AppData%`.
153
+ if [[ -n "${APPDATA}" ]]; then
154
+ cp "./.circleci/bazel.windows.rc" ".bazelrc.user";
155
+ else
156
+ cp "./.circleci/bazel.linux.rc" ".bazelrc.user";
157
+ fi
148
158
- devinfra/setup-bazel-remote-exec :
149
- bazelrc : ./.bazelrc.user
159
+ shell : bash
150
160
151
161
install_python :
152
162
steps :
@@ -307,7 +317,6 @@ jobs:
307
317
steps :
308
318
- custom_attach_workspace
309
319
- setup_bazel_rbe
310
- - run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
311
320
- when :
312
321
# The default nodeversion runs all *excluding* other versions
313
322
condition :
@@ -454,6 +463,7 @@ jobs:
454
463
- checkout
455
464
- rebase_pr_win
456
465
- setup_windows
466
+ - setup_bazel_rbe
457
467
- restore_cache :
458
468
keys :
459
469
- *cache_key_win
You can’t perform that action at this time.
0 commit comments