Skip to content

Commit 7617b66

Browse files
committed
Build with OCaml 5.1.0
1 parent 5912a52 commit 7617b66

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ${{matrix.os}}
3535

3636
container:
37-
image: ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-4.14.1-02
37+
image: ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-5.1.0-01
3838

3939
steps:
4040
# See https://github.com/actions/runner/issues/801#issuecomment-1374967227.
@@ -115,7 +115,7 @@ jobs:
115115
ubuntu-latest,
116116
windows-latest,
117117
]
118-
ocaml_compiler: [4.14.1]
118+
ocaml_compiler: [5.1.0]
119119

120120
runs-on: ${{matrix.os}}
121121

@@ -158,11 +158,12 @@ jobs:
158158
uses: ocaml/setup-ocaml@v2
159159
if: matrix.os == 'windows-latest'
160160
with:
161-
ocaml-compiler: ${{matrix.ocaml_compiler}}
161+
ocaml-compiler: ocaml-variants.5.1.0+options,ocaml-option-mingw
162162
opam-pin: false
163163
opam-depext: false
164164
opam-repositories: |
165-
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
165+
windows-5.0: https://github.com/dra27/opam-repository.git#windows-5.0
166+
sunset: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
166167
default: https://github.com/ocaml/opam-repository.git
167168
168169
- name: "Install OPAM dependencies"
@@ -238,7 +239,7 @@ jobs:
238239
# Build the playground compiler on the fastest runner (ubuntu-latest)
239240
- name: Install JSOO
240241
if: matrix.os == 'ubuntu-latest'
241-
run: opam install js_of_ocaml.4.0.0
242+
run: opam install js_of_ocaml.5.6.0
242243

243244
- name: Build playground compiler
244245
if: matrix.os == 'ubuntu-latest'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ test: lib
2828

2929
test-syntax:
3030
bash ./scripts/test_syntax.sh
31-
make reanalyze
31+
# make reanalyze
3232
bash ./scripts/testok.sh
3333

3434
test-syntax-roundtrip:
3535
ROUNDTRIP_TEST=1 bash ./scripts/test_syntax.sh
36-
make reanalyze
36+
# make reanalyze
3737
bash ./scripts/testok.sh
3838

3939
test-gentype:

dune-project

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
(cppo
2626
(= 1.6.9))
2727
(js_of_ocaml-compiler
28-
(= 4.0.0))
28+
(= 5.6.0))
2929
(ounit2
30-
(= 2.2.6))
31-
(reanalyze
32-
(= 2.23.0))
30+
(= 2.2.7))
31+
; No OCaml 5 compatible reanalyze on OPAM yet
32+
; (reanalyze
33+
; (= 2.23.0))
3334
dune))

jscomp/frontend/bs_ast_mapper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*)
2222

2323
open! Parsetree
24-
open Ast_helper
24+
open! Ast_helper
2525
open Location
2626

2727
type mapper = {

jscomp/syntax/src/jsx_v4.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open Ast_helper
1+
open! Ast_helper
22
open Ast_mapper
33
open Asttypes
44
open Parsetree

rescript.opam

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ depends: [
1010
"ocaml" {>= "4.10"}
1111
"ocamlformat" {= "0.26.1"}
1212
"cppo" {= "1.6.9"}
13-
"js_of_ocaml-compiler" {= "4.0.0"}
14-
"ounit2" {= "2.2.6"}
15-
"reanalyze" {= "2.23.0"}
13+
"js_of_ocaml-compiler" {= "5.6.0"}
14+
"ounit2" {= "2.2.7"}
1615
"dune"
1716
]
1817
build: [

0 commit comments

Comments
 (0)