Skip to content

Commit

Permalink
go back to hashFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Jan 30, 2024
1 parent d458dc3 commit c7e7dd6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ jobs:
~/.cache/bazel
~/.cache/bazel-repo
key: >-
v3-bazel-repo-cache
-${{ matrix.external_dependency_system }}-${{ matrix.toolchain }}
-${{ hashFiles('.bazelversion', '**/WORKSPACE', '**/MODULE.bazel' 'repositories/**/*.bzl', 'requirements_lock.txt') }}
restore-keys: >-
v3-bazel-repo-cache
-${{ matrix.external_dependency_system }}-${{ matrix.toolchain }}-
-${{ github.event.pull_request.number || github.ref }}
restore-keys: v3-bazel-repo-cache-${{ matrix.external_dependency_system }}-${{ matrix.toolchain }}-
- name: bazel test //...
env:
# Bazelisk will download bazel to here, ensure it is cached between runs.
Expand All @@ -113,3 +115,14 @@ jobs:
${GITHUB_WORKSPACE}/.github/workflows/test.sh
${{ matrix.config_option }}
${{ matrix.bzlmod_flags }}
- uses: actions/cache/save@v3
if: always()
with:
path: |
~/.cache/bazel
~/.cache/bazel-repo
key: >-
v3-bazel-repo-cache
-${{ matrix.external_dependency_system }}-${{ matrix.toolchain }}
-${{ hashFiles('.bazelversion', '**/WORKSPACE', '**/MODULE.bazel' 'repositories/**/*.bzl', 'requirements_lock.txt') }}

0 comments on commit c7e7dd6

Please sign in to comment.