From a86a179f45355d51b005d5042793a0e0f3dbe327 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 21 Oct 2019 08:31:41 -0700 Subject: [PATCH] build: use http caching on windows CI runs (#33298) PR Close #33298 --- .circleci/bazel.windows.rc | 3 +++ .circleci/config.yml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.circleci/bazel.windows.rc b/.circleci/bazel.windows.rc index 903bf89e12..803ccfc83f 100644 --- a/.circleci/bazel.windows.rc +++ b/.circleci/bazel.windows.rc @@ -9,3 +9,6 @@ import %workspace%/.circleci/bazel.common.rc # Save downloaded repositories in a location that can be cached by CircleCI. This helps us # speeding up the analysis time significantly with Bazel managed node dependencies on the CI. build --repository_cache=C:/Users/circleci/bazel_repository_cache + +# All windows jobs run on master and should use http caching +build --config=remote-http-caching diff --git a/.circleci/config.yml b/.circleci/config.yml index 9c01aab910..813ccc139b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -172,6 +172,11 @@ commands: description: Set up CircleCI bazel configuration on Windows steps: - run: copy .circleci\bazel.windows.rc $env:USERPROFILE\.bazelrc + - run: mkdir $env:APPDATA\gcloud + # We need ensure that the same default digest is used for encoding and decoding + # with openssl. Openssl versions might have different default digests which can + # cause decryption failures based on the openssl version. https://stackoverflow.com/a/39641378/4317734 + - run: openssl aes-256-cbc -d -in .circleci\gcp_token -md md5 -out "$env:APPDATA\gcloud\application_default_credentials.json" -k "$env:CIRCLE_PROJECT_REPONAME" setup_bazel_rbe: description: Setup bazel RBE remote execution