Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#651] Use Google Cloud Storage for the bazel remote cache #652

Merged
merged 1 commit into from Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .bazelrc
Expand Up @@ -21,7 +21,6 @@ build:ci --test_env=ROOT_LOG_LEVEL=ERROR

build:ci --noshow_progress
build:ci --verbose_failures
build:ci --disk_cache=~/.cache/bazel
build:ci --repository_cache==~/.cache/bazel_external
build:ci --remote_cache=https://storage.googleapis.com/airy-ci-cache

test:ci --flaky_test_attempts=2
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Expand Up @@ -15,14 +15,6 @@ jobs:
java-version: '11'
architecture: 'x64'

- name: Mount bazel cache
uses: actions/cache@v2
with:
path: |
/home/runner/.cache/bazel
/home/runner/.cache/bazel_external
key: bazel

- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
Expand All @@ -32,9 +24,13 @@ jobs:

- name: Enable CI settings
run: |
echo "$GCS_SA_KEY" > key.json
cat <<EOF >>.bazelrc
common --config=ci
build:ci --google_credentials=key.json
EOF
env:
GCS_SA_KEY: ${{secrets.GCS_SA_KEY}}

- name: Lint
run: |
Expand Down