Skip to content

Commit 9936f71

Browse files
committed
Workaround for setup-ocaml issue with self-hosted runner
1 parent a51e799 commit 9936f71

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,25 @@ jobs:
142142
chmod +x _build/install/default/bin/*
143143
144144
- name: Use OCaml ${{matrix.ocaml_compiler}}
145-
uses: ocaml/[email protected]
146-
if: matrix.os != 'windows-latest'
145+
uses: ocaml/setup-ocaml@v2
146+
if: matrix.os != 'macos-arm' && matrix.os != 'windows-latest'
147+
with:
148+
ocaml-compiler: ${{matrix.ocaml_compiler}}
149+
opam-pin: false
150+
opam-depext: false
151+
152+
- name: Use OCaml ${{matrix.ocaml_compiler}}
153+
uses: ocaml/setup-ocaml@v2
154+
env:
155+
GITHUB_ACTIONS: false # see https://github.com/ocaml/setup-ocaml/issues/735#issuecomment-1845210572
156+
if: matrix.os == 'macos-arm'
147157
with:
148158
ocaml-compiler: ${{matrix.ocaml_compiler}}
149159
opam-pin: false
150160
opam-depext: false
151161

152162
- name: Use OCaml ${{matrix.ocaml_compiler}} (Win)
153-
uses: ocaml/setup-ocaml@v2.1.7
163+
uses: ocaml/setup-ocaml@v2
154164
if: matrix.os == 'windows-latest'
155165
with:
156166
ocaml-compiler: ${{matrix.ocaml_compiler}}

0 commit comments

Comments
 (0)