Move Bazel CI cache directory outside the workspace
Bazel 9 rejects --repository_cache paths located inside the main
repository because the default repo contents cache directory would
reside inside the workspace. Move BAZEL_CACHE_DIR from
${{github.workspace}}/bazel-cache to ${{runner.temp}}/bazel-cache.
Change-Id: I6a336b1ac3f3f462fa780a16e5d1b7cbaf3d4bb8
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
index 344a704..187bc5f 100644
--- a/.github/workflows/bazel.yml
+++ b/.github/workflows/bazel.yml
@@ -10,7 +10,7 @@
run:
shell: bash -e -o pipefail {0}
env:
- BAZEL_CACHE_DIR: ${{github.workspace}}/bazel-cache
+ BAZEL_CACHE_DIR: ${{runner.temp}}/bazel-cache
steps:
- uses: actions/checkout@v4