Skip to content

Commit 04c3297

Browse files
committed
build: allow no-remote-exec targets to be cached on CI
1 parent e929f9f commit 04c3297

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

.circleci/dynamic_config.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,6 @@ commands:
136136
# cause decryption failures based on the openssl version. https://stackoverflow.com/a/39641378/4317734
137137
openssl aes-256-cbc -d -in .circleci/gcp_token -md md5 -k "${<< parameters.key >>}" -out /home/circleci/.gcp_credentials;
138138
sudo bash -c "echo -e 'build --google_credentials=/home/circleci/.gcp_credentials' >> .bazelrc.user";
139-
# Upload/don't upload local results to cache based on environment
140-
if [[ -n "{$CIRCLE_PULL_REQUEST}" ]]; then
141-
sudo bash -c "echo -e 'build:remote --remote_upload_local_results=false\n' >> .bazelrc.user";
142-
echo "Not uploading local build results to remote cache.";
143-
else
144-
sudo bash -c "echo -e 'build:remote --remote_upload_local_results=true\n' >> .bazelrc.user";
145-
echo "Uploading local build results to remote cache.";
146-
fi
147139
# Enable remote builds
148140
sudo bash -c "echo -e 'build --config=remote' >> .bazelrc.user";
149141
echo "Reading from remote cache for bazel remote jobs.";

0 commit comments

Comments
 (0)