Skip to content

Commit 978b473

Browse files
smorimotohhugo
andcommitted
ocaml/setup-ocaml@v3.0.0-alpha
Signed-off-by: Sora Morimoto <sora@morimoto.io> Co-authored-by: Hugo Heuzard <hugo.heuzard@gmail.com>
1 parent 9faf228 commit 978b473

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed

.github/workflows/build.yml

+11-29
Original file line numberDiff line numberDiff line change
@@ -58,51 +58,33 @@ jobs:
5858
skip-test: false
5959
skip-doc: true
6060
- os: windows-latest
61-
ocaml-compiler: ocaml.5.2.0,ocaml-option-mingw
61+
ocaml-compiler: "5.2"
6262
skip-effects: false
6363
skip-test: false
6464
skip-doc: true
6565

6666
runs-on: ${{ matrix.os }}
6767

6868
steps:
69-
- name: Set git to use LF
70-
if: runner.ocaml-compiler < 5.2
71-
run: |
72-
git config --global core.autocrlf false
73-
git config --global core.eol lf
74-
git config --global core.ignorecase false
75-
7669
- name: Checkout tree
7770
uses: actions/checkout@v4
71+
with:
72+
submodules: recursive
7873

7974
- name: Set-up Node.js
8075
uses: actions/setup-node@v4
8176
with:
8277
node-version: lts/*
8378

8479
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
85-
if: runner.os == 'Windows'
86-
uses: ocaml/setup-ocaml@v2
87-
with:
88-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
89-
opam-repositories: |
90-
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
91-
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
92-
opam: https://github.com/ocaml/opam-repository.git
93-
dune-cache: true
94-
opam-depext: ${{ !matrix.skip-test }}
95-
opam-depext-flags: --with-test
96-
97-
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
98-
if: runner.os != 'Windows'
99-
uses: ocaml/setup-ocaml@v2
80+
uses: ocaml/setup-ocaml@v3.0.0-alpha
10081
with:
10182
ocaml-compiler: ${{ matrix.ocaml-compiler }}
10283
allow-prerelease-opam: true
10384
dune-cache: true
104-
opam-depext: ${{ !matrix.skip-test }}
105-
opam-depext-flags: --with-test
85+
opam-repositories: |
86+
hhugo: git+https://github.com/hhugo/opam-repository.git#gmp-mingw
87+
default: git+https://github.com/ocaml/opam-repository.git
10688
10789
- run: opam install . --best-effort
10890
if: ${{ matrix.skip-test }}
@@ -144,13 +126,13 @@ jobs:
144126
uses: actions/checkout@v4
145127

146128
- name: Set-up OCaml
147-
uses: ocaml/setup-ocaml@v2
129+
uses: ocaml/setup-ocaml@v3.0.0-alpha
148130
with:
149131
ocaml-compiler: "5.2"
150132
allow-prerelease-opam: true
151133
dune-cache: true
152134

153-
- uses: ocaml/setup-ocaml/lint-opam@v2
135+
- uses: ocaml/setup-ocaml/lint-opam@v3.0.0-alpha
154136
continue-on-error: true
155137

156138
lint-fmt:
@@ -160,10 +142,10 @@ jobs:
160142
uses: actions/checkout@v4
161143

162144
- name: Set-up OCaml
163-
uses: ocaml/setup-ocaml@v2
145+
uses: ocaml/setup-ocaml@v3.0.0-alpha
164146
with:
165147
ocaml-compiler: "5.2"
166148
allow-prerelease-opam: true
167149
dune-cache: true
168150

169-
- uses: ocaml/setup-ocaml/lint-fmt@v2
151+
- uses: ocaml/setup-ocaml/lint-fmt@v3.0.0-alpha

0 commit comments

Comments
 (0)