File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
.github/actions/cache-bazel Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ build:linux --workspace_status_command=scripts/build-info.sh
3838build:macos --workspace_status_command=scripts/build-info.sh
3939build:windows --workspace_status_command="powershell.exe scripts/build-info.ps1"
4040
41- # Enable read-only public remote cache.
42- # To enable write mode, add the following to your .bazelrc.local:
43- # build --remote_upload_local_results=true --google_credentials=<path-to-json-key>
44-
45- build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache --remote_upload_local_results=false
46-
4741# Make sure we get something helpful when tests fail
4842
4943build --verbose_failures
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ runs:
4949 ${{ runner.os }}-bazel-${{ inputs.workflow }}-
5050 - run : |
5151 echo '${{ inputs.gcs-key }}' >> gcs.json
52- echo "build --remote_upload_local_results=true --google_credentials=gcs.json" >> .bazelrc
53- if: github.ref == 'refs/heads/trunk' && runner.os != 'Windows'
52+ echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache -- remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json" >> .bazelrc
53+ if: runner.os != 'Windows'
5454 shell: bash
5555 - run : |
5656 echo ${{ inputs.gcs-key }}>>gcs.json
57- echo "build --remote_upload_local_results=true --google_credentials=gcs.json">>.bazelrc
57+ echo "build --remote_cache=https://storage.googleapis.com/seleniumhq-bazel-remote-cache -- remote_upload_local_results=${{ github.ref == 'refs/heads/trunk' }} --google_credentials=gcs.json">>.bazelrc
5858 if: github.ref == 'refs/heads/trunk' && runner.os == 'Windows'
5959 shell: cmd
You can’t perform that action at this time.
0 commit comments