Skip to content

Commit fcf1861

Browse files
committed
switch test to OCaml 5
1 parent 1df6057 commit fcf1861

File tree

4 files changed

+128
-164
lines changed

4 files changed

+128
-164
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
skip-effects: false
6262
skip-test: false
6363
skip-doc: true
64+
- os: ubuntu-latest
65+
ocaml-compiler: ocaml-variants.5.2.0+trunk
66+
skip-effects: false
67+
skip-test: false
68+
skip-doc: true
6469

6570
runs-on: ${{ matrix.os }}
6671

@@ -90,17 +95,23 @@ jobs:
9095
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
9196
opam: https://github.com/ocaml/opam-repository.git
9297
dune-cache: true
93-
opam-depext: ${{ !matrix.skip-test }}
94-
opam-depext-flags: --with-test
98+
opam-depext: false
9599

96100
- name: Use OCaml ${{ matrix.ocaml-compiler }}
97101
if: runner.os != 'Windows'
98102
uses: ocaml/setup-ocaml@v2
99103
with:
100104
ocaml-compiler: ${{ matrix.ocaml-compiler }}
101105
dune-cache: true
102-
opam-depext: ${{ !matrix.skip-test }}
103-
opam-depext-flags: --with-test
106+
opam-depext: false
107+
108+
- run: opam pin add ppxlib git+https://github.com/panglesd/ppxlib.git#trunk-support-502 --no-action
109+
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.2.0+trunk' }}
110+
111+
- run: opam pin add ocaml-compiler-libs git+https://github.com/art-w/ocaml-compiler-libs.git#ocaml-5.2-trunk --no-action
112+
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.2.0+trunk' }}
113+
114+
- run: opam pin add ./ --no-action
104115

105116
- run: opam install . --best-effort
106117
if: ${{ matrix.skip-test }}

compiler/tests-check-prim/unix-unix.output5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ caml_unix_outchannel_of_filedescr
9999
caml_unix_pipe
100100
caml_unix_putenv
101101
caml_unix_read
102+
caml_unix_read_bigarray
102103
caml_unix_realpath
103104
caml_unix_recv
104105
caml_unix_recvfrom
@@ -138,6 +139,7 @@ caml_unix_utimes
138139
caml_unix_wait
139140
caml_unix_waitpid
140141
caml_unix_write
142+
caml_unix_write_bigarray
141143
debugger
142144
is_digit_normalized
143145

compiler/tests-toplevel/test_toplevel.reference

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ hello
22
Line 3, characters 2-4:
33
Error: Syntax error
44
Line 4, characters 0-16:
5-
Error: Unbound module Missing_module
5+
Error: Unbound module "Missing_module"

0 commit comments

Comments
 (0)