Skip to content

Commit 0938cea

Browse files
committed
Update in ci workflow to improve cache hits
1 parent f1a3645 commit 0938cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
path: |
2424
~/.cache/bazelisk
2525
~/.cache/bazel
26-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }}
26+
key: ${{ runner.os }}-bazel-cache-${{ hashFiles('WORKSPACE', '**/BUILD', '**/*.bzl', '.bazelrc') }}
2727
restore-keys: |
28-
${{ runner.os }}-${{ env.cache-name }}-development
28+
${{ runner.os }}-bazel-cache-
2929
3030
# Install dependencies (project has additional setup requirements)
3131
- name: Install Dependencies

0 commit comments

Comments
 (0)