Skip to content

Commit ed06896

Browse files
committed
Bump minimum OCaml version from 4.14.2 to 5.0.1
- Update CI compatibility test to use OCaml 5.0.1 - Update all package dependencies in dune-project to require OCaml >= 5.0.1 - Update rescript.opam.template to require OCaml >= 5.0.1 - Remove redundant OCaml version check from syntax_benchmarks/dune
1 parent f68e752 commit ed06896

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
# Verify that the compiler still builds with the oldest OCaml version we support.
6565
- os: ubuntu-24.04
66-
ocaml_compiler: ocaml-variants.4.14.2+options,ocaml-option-static
66+
ocaml_compiler: ocaml-variants.5.0.1+options,ocaml-option-static
6767
node-target: linux-x64
6868
rust-target: x86_64-unknown-linux-musl
6969

dune-project

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616

1717
(package
1818
(name rescript)
19-
(synopsis "ReScript compiler"))
19+
(synopsis "ReScript compiler")
20+
(depends
21+
(ocaml
22+
(>= 5.0.1))))
2023

2124
(package
2225
(name analysis)
2326
(synopsis "ReScript Analysis")
2427
(depends
2528
(ocaml
26-
(>= 4.14))
29+
(>= 5.0.1))
2730
(cppo
2831
(= 1.8.0))
2932
dune))
@@ -33,7 +36,7 @@
3336
(synopsis "ReScript Tools")
3437
(depends
3538
(ocaml
36-
(>= 4.14))
39+
(>= 5.0.1))
3740
(cmarkit
3841
(>= 0.3.0))
3942
(cppo

rescript.opam.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
depends: [
2-
"ocaml" {>= "4.14"}
2+
"ocaml" {>= "5.0.1"}
33
"cppo" {= "1.8.0"}
44
"dune" {>= "3.17"}
55
"flow_parser" {= "0.267.0"}

tests/syntax_benchmarks/dune

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
(enabled_if
1111
(and
1212
(<> %{profile} browser)
13-
(>= %{ocaml_version} "4.14.0")
1413
(or
1514
(= %{system} macosx)
1615
; or one of Linuxes (see https://github.com/ocaml/ocaml/issues/10613)

0 commit comments

Comments
 (0)