@@ -222,15 +222,17 @@ jobs:
222
222
223
223
- name : Use OCaml ${{matrix.ocaml_compiler}}
224
224
uses : ocaml/setup-ocaml@v2
225
- if : steps.cache-opam-env.outputs.cache-hit != 'true' && matrix.os != 'windows-latest'
225
+ # if: steps.cache-opam-env.outputs.cache-hit != 'true' && matrix.os != 'windows-latest'
226
+ if : matrix.os != 'windows-latest'
226
227
with :
227
228
ocaml-compiler : ${{matrix.ocaml_compiler}}
228
229
opam-pin : false
229
230
opam-depext : false
230
231
231
232
- name : Use OCaml ${{matrix.ocaml_compiler}} (Win)
232
233
uses : ocaml/setup-ocaml@v2
233
- if : steps.cache-opam-env.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'
234
+ # if: steps.cache-opam-env.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'
235
+ if : matrix.os == 'windows-latest'
234
236
with :
235
237
ocaml-compiler : ocaml-variants.5.2.0+options,ocaml-option-mingw
236
238
opam-pin : false
@@ -241,7 +243,7 @@ jobs:
241
243
default: https://github.com/ocaml/opam-repository.git
242
244
243
245
- name : " Install OPAM dependencies"
244
- if : steps.cache-opam-env.outputs.cache-hit != 'true'
246
+ # if: steps.cache-opam-env.outputs.cache-hit != 'true'
245
247
run : opam install . --deps-only
246
248
247
249
- name : Cache OPAM env
@@ -252,8 +254,9 @@ jobs:
252
254
key : opam-env-${{ runner.os }}-${{ hashFiles('dune-project') }}
253
255
254
256
- name : Get OPAM path
255
- if : steps.cache-opam-env.outputs.cache-hit != 'true'
257
+ # if: steps.cache-opam-env.outputs.cache-hit != 'true'
256
258
run : |
259
+ which opam
257
260
which opam > .opam-path
258
261
259
262
- name : Cache OPAM path
@@ -274,6 +277,9 @@ jobs:
274
277
- name : Use cached OPAM env
275
278
if : steps.cache-opam-env.outputs.cache-hit == 'true'
276
279
run : |
280
+ cat .opam-path
281
+ dirname $(cat .opam-path)
282
+ ls $(dirname $(cat .opam-path))
277
283
dirname $(cat .opam-path) >> $GITHUB_PATH
278
284
279
285
- name : Use cached OPAM env
0 commit comments