Skip to content

Commit 84bed4d

Browse files
authored
Disable setup-ocaml's redundant cache (#8601)
Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent 5912bf1 commit 84bed4d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/setup-ocaml/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ runs:
8282
run: |
8383
dependency_flags_key="${DEPENDENCY_FLAGS//--/}"
8484
dependency_flags_key="${dependency_flags_key// /_}"
85-
key="$CACHE_PREFIX-$OS-3.7.2-$COMPILER-$dependency_flags_key-${{ hashFiles('*.opam') }}"
85+
key="$CACHE_PREFIX-$OS-3.8.0-$COMPILER-$dependency_flags_key-${{ hashFiles('*.opam') }}"
8686
echo "value=${key//,/-}" >> "$GITHUB_OUTPUT"
87-
echo "setup-version=3.7.2" >> "$GITHUB_OUTPUT"
87+
echo "setup-version=3.8.0" >> "$GITHUB_OUTPUT"
8888
8989
- name: Restore OPAM environment
9090
id: cache
@@ -101,10 +101,11 @@ runs:
101101

102102
- name: Use OCaml ${{ inputs.compiler }}
103103
if: steps.cache.outputs.cache-hit != 'true'
104-
uses: ocaml/setup-ocaml@v3.7.2
104+
uses: ocaml/setup-ocaml@v3.8.0
105105
with:
106106
ocaml-compiler: ${{ inputs.compiler }}
107107
opam-pin: false
108+
cache: false
108109

109110
- name: Get OPAM executable path
110111
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)