mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fed76306d9
Improves stability of the Windows Bazel CI job by installing Bazelisk globally. Also makes the environment helpers more convenient by evaluating the variable assignments directly, simplifying some Bash logic. PR Close #45431
17 lines
1.1 KiB
Bash
Executable File
17 lines
1.1 KiB
Bash
Executable File
####################################################################################################
|
|
# Decrypt GCP Credentials and store them as the Google default credentials.
|
|
####################################################################################################
|
|
mkdir -p "${APPDATA}/gcloud/";
|
|
openssl aes-256-cbc -d -in "${PROJECT_ROOT}/.circleci/gcp_token" \
|
|
-md md5 -k "$CIRCLE_PROJECT_REPONAME" -out "${APPDATA}/gcloud/application_default_credentials.json"
|
|
|
|
####################################################################################################
|
|
# Set bazel configuration for CircleCI runs.
|
|
####################################################################################################
|
|
cp "${PROJECT_ROOT}/.circleci/bazel.windows.rc" "${USERPROFILE}/.bazelrc";
|
|
|
|
|
|
# Expose the Bazelisk version. We need to run Bazelisk globally since Windows has problems launching
|
|
# Bazel from a node modules directoy that might be modified by the Bazel Yarn install then.
|
|
setPublicVar BAZELISK_VERSION \
|
|
"$(cd ${PROJECT_ROOT}; node -p 'require("./package.json").devDependencies["@bazel/bazelisk"]')" |