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