Skip to content

Commit e870693

Browse files
committed
debug opam-path
1 parent 2814d5d commit e870693

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,17 @@ 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'
225+
# if: steps.cache-opam-env.outputs.cache-hit != 'true' && matrix.os != 'windows-latest'
226+
if: matrix.os != 'windows-latest'
226227
with:
227228
ocaml-compiler: ${{matrix.ocaml_compiler}}
228229
opam-pin: false
229230
opam-depext: false
230231

231232
- name: Use OCaml ${{matrix.ocaml_compiler}} (Win)
232233
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'
234236
with:
235237
ocaml-compiler: ocaml-variants.5.2.0+options,ocaml-option-mingw
236238
opam-pin: false
@@ -241,7 +243,7 @@ jobs:
241243
default: https://github.com/ocaml/opam-repository.git
242244
243245
- name: "Install OPAM dependencies"
244-
if: steps.cache-opam-env.outputs.cache-hit != 'true'
246+
# if: steps.cache-opam-env.outputs.cache-hit != 'true'
245247
run: opam install . --deps-only
246248

247249
- name: Cache OPAM env
@@ -252,8 +254,9 @@ jobs:
252254
key: opam-env-${{ runner.os }}-${{ hashFiles('dune-project') }}
253255

254256
- name: Get OPAM path
255-
if: steps.cache-opam-env.outputs.cache-hit != 'true'
257+
# if: steps.cache-opam-env.outputs.cache-hit != 'true'
256258
run: |
259+
which opam
257260
which opam > .opam-path
258261
259262
- name: Cache OPAM path
@@ -274,6 +277,9 @@ jobs:
274277
- name: Use cached OPAM env
275278
if: steps.cache-opam-env.outputs.cache-hit == 'true'
276279
run: |
280+
cat .opam-path
281+
dirname $(cat .opam-path)
282+
ls $(dirname $(cat .opam-path))
277283
dirname $(cat .opam-path) >> $GITHUB_PATH
278284
279285
- name: Use cached OPAM env

0 commit comments

Comments
 (0)