File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 75
75
76
76
runs-on : ${{matrix.os}}
77
77
78
+ env :
79
+ # Also adjust in `uses:` when changed!
80
+ # This version of setup-ocaml comes with OPAM 2.4.0.
81
+ SETUP_OCAML_VERSION : 3.4.0
82
+
78
83
steps :
79
84
- name : " Windows: Set git config"
80
85
if : runner.os == 'Windows'
@@ -141,7 +146,7 @@ jobs:
141
146
# matrix.ocaml_compiler may contain commas
142
147
- name : Get OPAM cache key
143
148
shell : bash
144
- run : echo "opam_cache_key=opam-env-v8-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('*.opam') }}" | sed 's/,/-/g' >> $GITHUB_ENV
149
+ run : echo "opam_cache_key=opam-env-v8-${{ matrix.os }}-${{ env.SETUP_OCAML_VERSION }}-{{ matrix.ocaml_compiler }}-${{ hashFiles('*.opam') }}" | sed 's/,/-/g' >> $GITHUB_ENV
145
150
146
151
- name : Restore OPAM environment
147
152
id : cache-opam-env
@@ -157,7 +162,7 @@ jobs:
157
162
key : ${{ env.opam_cache_key }}
158
163
159
164
- name : Use OCaml ${{matrix.ocaml_compiler}}
160
- uses : ocaml/setup-ocaml@v3.3.2
165
+ uses : ocaml/setup-ocaml@v3.4.0
161
166
if : steps.cache-opam-env.outputs.cache-hit != 'true'
162
167
with :
163
168
ocaml-compiler : ${{matrix.ocaml_compiler}}
You can’t perform that action at this time.
0 commit comments