Skip to content

Commit 601d2f6

Browse files
committed
fix opam cache key to use opam
1 parent ebd7b1e commit 601d2f6

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
@@ -152,7 +152,7 @@ jobs:
152152
# matrix.ocaml_compiler may contain commas
153153
- name: Get OPAM cache key
154154
shell: bash
155-
run: echo "opam_cache_key=opam-env-v7-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
155+
run: echo "opam_cache_key=opam-env-v7-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('/*.opam') }}" | sed 's/,/-/g' >> $GITHUB_ENV
156156

157157
- name: Restore OPAM environment
158158
id: cache-opam-env
@@ -249,7 +249,7 @@ jobs:
249249
id: compiler-build-state-key
250250
shell: bash
251251
run: |
252-
echo "value=compiler-build-state-v1-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" \
252+
echo "value=compiler-build-state-v1-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('/*.opam') }}" \
253253
| sed 's/,/-/g' >> "$GITHUB_OUTPUT"
254254
255255
- name: Restore compiler build state

0 commit comments

Comments
 (0)