Skip to content

Commit c5f5edb

Browse files
schoppmpcopybara-github
authored andcommitted
Improve caching for presubmit workflows
PiperOrigin-RevId: 828020443
1 parent af82247 commit c5f5edb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/presubmit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ jobs:
3737
with:
3838
path: |
3939
~/.cache/bazel
40-
key: ${{ runner.os }}-${{ hashFiles('.bazelrc', 'MODULE.bazel') }}
40+
key: ${{ runner.os }}-${{ hashFiles('.bazelrc') }}-${{ hashFiles('MODULE.bazel.lock') }}-${{ github.sha }}
4141
restore-keys: |
42-
${{ runner.os }}-${{ hashFiles('.bazelrc', 'MODULE.bazel') }}
42+
${{ runner.os }}-${{ hashFiles('.bazelrc') }}-${{ hashFiles('MODULE.bazel.lock') }}-
43+
${{ runner.os }}-${{ hashFiles('.bazelrc') }}-
44+
${{ runner.os }}-
4345
4446
- name: "Run `bazel build`"
4547
run: |

0 commit comments

Comments
 (0)