Actions: use a secondary cache bucket for mixed versions tests.

To hopefully reduce the amount of write limiting seen in ci.
This commit is contained in:
Karl Nilsson 2024-06-25 16:51:55 +01:00
parent 34d3f94374
commit ef7de9cbcc
3 changed files with 7 additions and 7 deletions

View File

@ -106,9 +106,9 @@ jobs:
if: env.exists != 'true'
working-directory: secondary-umbrella
run: |
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}" ]; then
cat << EOF >> user.bazelrc
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }}
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}
build --google_default_credentials
build --remote_download_toplevel

View File

@ -84,9 +84,9 @@ jobs:
if: env.exists != 'true'
working-directory: secondary-umbrella
run: |
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}" ]; then
cat << EOF >> user.bazelrc
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }}
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}
build --google_default_credentials
build --remote_download_toplevel

View File

@ -15,7 +15,7 @@ on:
default: 1
type: number
secrets:
REMOTE_CACHE_BUCKET_NAME:
REMOTE_CACHE_BUCKET_NAME_MIXED:
required: true
REMOTE_CACHE_CREDENTIALS_JSON:
required: true
@ -56,9 +56,9 @@ jobs:
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }}
- name: CONFIGURE BAZEL
run: |
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}" ]; then
cat << EOF >> user.bazelrc
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }}
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME_MIXED }}
build --google_default_credentials
build --experimental_guard_against_concurrent_changes