Skip to content

Commit bc6b86d

Browse files
committed
then work?
1 parent e870693 commit bc6b86d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,15 @@ jobs:
222222

223223
- name: Use OCaml ${{matrix.ocaml_compiler}}
224224
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'
227226
with:
228227
ocaml-compiler: ${{matrix.ocaml_compiler}}
229228
opam-pin: false
230229
opam-depext: false
231230

232231
- name: Use OCaml ${{matrix.ocaml_compiler}} (Win)
233232
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'
236234
with:
237235
ocaml-compiler: ocaml-variants.5.2.0+options,ocaml-option-mingw
238236
opam-pin: false
@@ -242,8 +240,8 @@ jobs:
242240
sunset: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
243241
default: https://github.com/ocaml/opam-repository.git
244242
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'
247245
run: opam install . --deps-only
248246

249247
- name: Cache OPAM env
@@ -254,7 +252,7 @@ jobs:
254252
key: opam-env-${{ runner.os }}-${{ hashFiles('dune-project') }}
255253

256254
- name: Get OPAM path
257-
# if: steps.cache-opam-env.outputs.cache-hit != 'true'
255+
if: steps.cache-opam-env.outputs.cache-hit != 'true'
258256
run: |
259257
which opam
260258
which opam > .opam-path
@@ -277,10 +275,8 @@ jobs:
277275
- name: Use cached OPAM env
278276
if: steps.cache-opam-env.outputs.cache-hit == 'true'
279277
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
284280
285281
- name: Use cached OPAM env
286282
if: steps.cache-opam-env.outputs.cache-hit == 'true'

0 commit comments

Comments
 (0)