Skip to content

Commit

Permalink
switch test to OCaml 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 28, 2023
1 parent 1df6057 commit fcf1861
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 164 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
skip-effects: false
skip-test: false
skip-doc: true
- os: ubuntu-latest
ocaml-compiler: ocaml-variants.5.2.0+trunk
skip-effects: false
skip-test: false
skip-doc: true

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

Expand Down Expand Up @@ -90,17 +95,23 @@ jobs:
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test
opam-depext: false

- name: Use OCaml ${{ matrix.ocaml-compiler }}
if: runner.os != 'Windows'
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test
opam-depext: false

- run: opam pin add ppxlib git+https://github.com/panglesd/ppxlib.git#trunk-support-502 --no-action
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.2.0+trunk' }}

- run: opam pin add ocaml-compiler-libs git+https://github.com/art-w/ocaml-compiler-libs.git#ocaml-5.2-trunk --no-action
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.2.0+trunk' }}

- run: opam pin add ./ --no-action

- run: opam install . --best-effort
if: ${{ matrix.skip-test }}
Expand Down
2 changes: 2 additions & 0 deletions compiler/tests-check-prim/unix-unix.output5
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ caml_unix_outchannel_of_filedescr
caml_unix_pipe
caml_unix_putenv
caml_unix_read
caml_unix_read_bigarray
caml_unix_realpath
caml_unix_recv
caml_unix_recvfrom
Expand Down Expand Up @@ -138,6 +139,7 @@ caml_unix_utimes
caml_unix_wait
caml_unix_waitpid
caml_unix_write
caml_unix_write_bigarray
debugger
is_digit_normalized

Expand Down
2 changes: 1 addition & 1 deletion compiler/tests-toplevel/test_toplevel.reference
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ hello
Line 3, characters 2-4:
Error: Syntax error
Line 4, characters 0-16:
Error: Unbound module Missing_module
Error: Unbound module "Missing_module"
Loading

0 comments on commit fcf1861

Please sign in to comment.