Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/js_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
skip-doc: true
- os: ubuntu-latest
os-name: Ubuntu
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
skip-effects: false
skip-test: false
skip-doc: false
Expand All @@ -72,31 +72,24 @@ jobs:
# Note this OCaml compiler is bytecode only
- os: ubuntu-latest
os-name: Ubuntu
ocaml-name: "5.3.0+32bit"
ocaml-compiler: "ocaml-variants.5.3.0+options,ocaml-option-32bit"
ocaml-name: "5.4.0~beta2+32bit"
ocaml-compiler: "ocaml-variants.5.4.0~beta2+options,ocaml-option-32bit"
skip-effects: true # disabled for the same reason than `skip-test`
skip-test: true # the `time_now.0.17` package is pulled and doesn't work in 32 bits :(
skip-doc: true
- os: macos-latest
os-name: MacOS
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
skip-effects: true
skip-test: false
skip-doc: true
- os: windows-latest
os-name: Windows
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
skip-effects: false
skip-test: false
skip-doc: true
- os: ubuntu-latest
os-name: Ubuntu
ocaml-name: "5.4-alpha1"
ocaml-compiler: "ocaml-compiler.5.4.0~alpha1"
skip-effects: true
skip-test: true
skip-doc: true


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

name:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/wasm_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@ jobs:
include:
- os: macos-latest
os-name: MacOS
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
separate_compilation: true
jane_street_tests: false
all_jane_street_tests: false
- os: windows-latest
os-name: Windows
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
separate_compilation: true
# Jane Street tests disabled for now (basement only works on Linux)
jane_street_tests: false
all_jane_street_tests: false
- os: ubuntu-latest
os-name: Ubuntu
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
separate_compilation: true
jane_street_tests: true
all_jane_street_tests: true
- os: ubuntu-latest
os-name: Ubuntu
ocaml-compiler: "5.3"
ocaml-compiler: "ocaml-base-compiler.5.4.0~beta2"
separate_compilation: false
jane_street_tests: true
all_jane_street_tests: false
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
run: |
opam repo add js janestreet/opam-repository
opam install opam-format
opam pin add ppxlib -n 0.35.0
opam pin add ppxlib -n 0.37.0~5.4preview
opam exec -- dune exec --root wasm_of_ocaml tools/ci_setup.exe

- name: Pin Jane Street packages
Expand Down
4 changes: 2 additions & 2 deletions compiler/tests-ocaml/lib-list/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ let () =
assert (List.take 3 [1; 2; 3; 4; 5] = [1; 2; 3]);
assert (List.take 3 [1; 2] = [1; 2]);
assert (List.take 3 [] = []);
assert ((try List.take (-1) [1; 2] with Invalid_argument _ -> [999]) = [999]);
assert (List.take (-1) [1; 2] = []);
assert (List.take 0 [1; 2] = []);
assert (List.drop 6 hello_world = world);
assert (List.drop 3 [1; 2; 3; 4; 5] = [4; 5]);
assert (List.drop 3 [1; 2] = []);
assert (List.drop 3 [] = []);
assert ((try List.drop (-1) [1; 2] with Invalid_argument _ -> [999]) = [999]);
assert (List.drop (-1) [1; 2] = [1; 2]);
assert (List.drop 0 [1; 2] = [1; 2]);
assert (List.take_while (fun x -> x < 3) [1; 2; 3; 4; 1; 2; 3; 4]
= [1; 2]);
Expand Down
4 changes: 2 additions & 2 deletions compiler/tests-toplevel/test_toplevel.expected
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ hello
- : int = 2
Line 4, characters 2-4:
Error: Syntax error
Line 5, characters 0-16:
Error: Unbound module "Missing_module"
Line 5, characters 0-14:
Error: Unbound module Missing_module
val y : float = 0.333333333333333315
12 changes: 6 additions & 6 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(ocaml (and (>= 4.13) (< 5.5)))
(num :with-test)
(ppx_expect (and (>= v0.16.1) :with-test))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(re :with-test)
(cmdliner (>= 1.1.0))
(sedlex (>= 3.3))
Expand Down Expand Up @@ -62,7 +62,7 @@
(depends
(ocaml (>= 4.13))
(js_of_ocaml (= :version))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(re (and (>= 1.9.0) :with-test))
Expand All @@ -76,7 +76,7 @@
(depends
(ocaml (>= 4.13))
(js_of_ocaml (= :version))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(re (and (>= 1.9.0) :with-test))
Expand All @@ -95,7 +95,7 @@
(graphics :with-test)
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(re (and (>= 1.9.0) :with-test))
))

Expand Down Expand Up @@ -126,7 +126,7 @@
(js_of_ocaml-compiler (= :version))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(re (and (>= 1.9.0) :with-test))
))

Expand All @@ -140,7 +140,7 @@
(js_of_ocaml (= :version))
(num :with-test)
(ppx_expect (and (>= v0.14.2) :with-test))
(ppxlib (>= 0.35))
(ppxlib (>= 0.37.0~5.4preview))
(re :with-test)
(cmdliner (>= 1.1.0))
(opam-format :with-test)
Expand Down
Loading