From 8cbaeeb260bd9379667b2e478735805dff5a430f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 29 Jan 2024 21:26:04 +0100 Subject: [PATCH] Actually cache stuff (#258) --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18a0e422..02a91895 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,9 +87,10 @@ jobs: uses: actions/cache@v4.0.0 with: path: | + ~/.cache/bazel ~/.cache/bazel-repo - key: v3-bazel-repo-cache-${{ hashFiles('.bazelversion', 'examples/WORKSPACE', 'repositories/**', 'requirements_lock.txt', 'WORKSPACE') }} - restore-keys: v3-bazel-repo-cache- + key: v3-bazel-repo-cache-${{ matrix.toolchain }}-${{ hashFiles('.bazelversion', 'examples/WORKSPACE', 'repositories/**', 'requirements_lock.txt', 'WORKSPACE') }} + restore-keys: v3-bazel-repo-cache-${{ matrix.toolchain }}- - name: bazel test ${{ matrix.config_option }} //... env: # Bazelisk will download bazel to here, ensure it is cached between runs.