From d714f8348c68e6478dda7a82f6f5b08f29cee2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Pr=C3=B6schel?= Date: Thu, 14 Jan 2021 11:32:03 +0100 Subject: [PATCH] [#651] Use GCS as a Bazel cache --- .bazelrc | 3 +-- .github/workflows/main.yml | 12 ++++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.bazelrc b/.bazelrc index 8a0914b74d..f0560a4de3 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 397893c171..2fd6e8bf81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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" @@ -32,9 +24,13 @@ jobs: - name: Enable CI settings run: | + echo "$GCS_SA_KEY" > key.json cat <>.bazelrc common --config=ci + build:ci --google_credentials=key.json EOF + env: + GCS_SA_KEY: ${{secrets.GCS_SA_KEY}} - name: Lint run: |