Skip to content

Commit

Permalink
[#651] Use GCS as a Bazel cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pröschel committed Jan 15, 2021
1 parent f345889 commit d714f83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
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

0 comments on commit d714f83

Please sign in to comment.