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 14, 2021
1 parent f345889 commit 143cec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Expand Up @@ -21,7 +21,7 @@ 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 --google_credentials=/tmp/key.json
build:ci --remote_cache=https://storage.googleapis.com/airy-ci-cache

test:ci --flaky_test_attempts=2
9 changes: 1 addition & 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 @@ -35,6 +27,7 @@ jobs:
cat <<EOF >>.bazelrc
common --config=ci
EOF
echo ${{ secrets.GCS_SA_KEY }} > /tmp/key.json
- name: Lint
run: |
Expand Down

0 comments on commit 143cec6

Please sign in to comment.