99jobs :
1010 build :
1111 env :
12- OPAMJOBS : 2
13- OPAMYES : true
1412 WASM_OF_OCAML : true
1513
1614 strategy :
@@ -19,45 +17,44 @@ jobs:
1917 os :
2018 - ubuntu-latest
2119 ocaml-compiler :
22- - 4.14.x
23- - 5.0.x
24- - 5.1.x
25- - 5.2.x
20+ - " 4.14"
21+ - " 5.0"
22+ - " 5.1"
23+ - " 5.2"
2624 - ocaml-compiler.5.3.0~beta2
2725 separate_compilation :
2826 - true
2927 include :
3028 - os : macos-latest
31- ocaml-compiler : 5.2.x
29+ ocaml-compiler : " 5.2"
3230 separate_compilation : true
3331 - os : ubuntu-latest
34- ocaml-compiler : 4.14.x
32+ ocaml-compiler : " 4.14"
3533 separate_compilation : false
3634
3735 runs-on : ${{ matrix.os }}
3836
3937 steps :
40- - name : Set git to use LF
41- run : |
42- git config --global core.autocrlf false
43- git config --global core.eol lf
44- git config --global core.ignorecase false
38+ - name : Checkout tree
39+ uses : actions/checkout@v4
4540
46- - name : Install node
41+ - name : Checkout Jane Street opam repository
42+ uses : actions/checkout@v4
43+ with :
44+ repository : janestreet/opam-repository
45+ ref : feaf8f831051fd5f316963b28efd728cf0b0eca1
46+ path : janestreet/opam-repository
47+
48+ - name : Set-up Node.js
4749 uses : actions/setup-node@v4
4850 with :
49- node-version : 23
51+ node-version : latest
5052
51- - name : Install OCaml ${{ matrix.ocaml-compiler }}
53+ - name : Set-up OCaml ${{ matrix.ocaml-compiler }}
5254 uses : ocaml/setup-ocaml@v3
5355 with :
5456 ocaml-compiler : ${{ matrix.ocaml-compiler }}
5557
56- - name : Checkout code
57- uses : actions/checkout@v4
58- with :
59- path : wasm_of_ocaml
60-
6158 - name : Set-up Binaryen
6259 uses : Aandreba/setup-binaryen@v1.0.0
6360 with :
@@ -67,84 +64,68 @@ jobs:
6764 # It's faster to use a cached version
6865 run : opam install --fake binaryen-bin
6966
70- - name : Checkout Jane Street opam repository
71- uses : actions/checkout@v4
72- with :
73- repository : janestreet/opam-repository
74- ref : feaf8f831051fd5f316963b28efd728cf0b0eca1
75- path : jane-street/opam-repository
76-
77- - name : Pin wasm_of_ocaml
78- working-directory : ./wasm_of_ocaml
79- run : opam pin -n --with-version `< VERSION` .
80-
81- - name : Install some needed packages
82- run : opam install opam-format ocamlfind dune graphics cmdliner sexplib0.v0.16.0
83-
8467 - name : Checkout Jane Street packages
85- run : opam exec -- ocaml wasm_of_ocaml/tools/ci_setup.ml
86-
87- - name : Install wasm_of_ocaml and its test dependencies
88- working-directory : ./wasm_of_ocaml
8968 run : |
90- opam install `basename -s .opam *.opam` num cohttp-lwt-unix ppx_expect cstruct
69+ opam install opam-format ocamlfind dune graphics cmdliner sexplib0.v0.16.0
70+ opam exec -- ocaml tools/ci_setup.ml
71+
72+ - name : Install dependencies
73+ run : opam install . --deps-only --with-test
9174
9275 - name : Run tests
9376 if : ${{ matrix.separate_compilation }}
94- working-directory : ./wasm_of_ocaml
9577 run : opam exec -- dune build @runtest-wasm
9678
9779 - name : Run tests with CPS effects
9880 if : ${{ matrix.ocaml-compiler >= '5.' && matrix.separate_compilation }}
99- working-directory : ./wasm_of_ocaml
10081 run : opam exec -- dune build @runtest-wasm --profile with-effects
10182
10283 - name : Run Base tests
10384 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
104- working-directory : ./jane-street /lib/base
85+ working-directory : ./janestreet /lib/base
10586 run : opam exec -- dune runtest
10687
10788 - name : Run Base bigstring tests
10889 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
109- working-directory : ./jane-street /lib/base_bigstring
90+ working-directory : ./janestreet /lib/base_bigstring
11091 run : opam exec -- dune runtest
11192
11293 - name : Run Core tests
11394 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
114- working-directory : ./jane-street /lib/core
95+ working-directory : ./janestreet /lib/core
11596 run : opam exec -- dune runtest
11697
11798 - name : Run Bignum tests
11899 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
119- working-directory : ./jane-street /lib/bignum
100+ working-directory : ./janestreet /lib/bignum
120101 run : opam exec -- dune runtest
121102
122103 - name : Run Bin_prot tests
123104 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
124- working-directory : ./jane-street /lib/bin_prot
105+ working-directory : ./janestreet /lib/bin_prot
125106 run : opam exec -- dune runtest
126107
127108 - name : Run String_dict tests
128109 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
129- working-directory : ./jane-street /lib/string_dict
110+ working-directory : ./janestreet /lib/string_dict
130111 run : opam exec -- dune runtest
131112
132113 - name : Run Zarith tests
133114 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
134- working-directory : ./jane-street /lib/zarith_stubs_js
115+ working-directory : ./janestreet /lib/zarith_stubs_js
135116 run : opam exec -- dune runtest
136117
137118 - name : Run Virtual_dom tests
138119 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
139- working-directory : ./jane-street /lib/virtual_dom
120+ working-directory : ./janestreet /lib/virtual_dom
140121 run : opam exec -- dune runtest
141122
142123 - name : Run Bonsai tests
143124 if : ${{ matrix.ocaml-compiler < '5.' && matrix.separate_compilation }}
144- working-directory : ./jane-street /lib/bonsai
125+ working-directory : ./janestreet /lib/bonsai
145126 run : opam exec -- dune runtest
146127
147128 - name : Run Bonsai tests (release profile)
148129 if : ${{ ! matrix.separate_compilation }}
149- working-directory : ./jane-street /lib/bonsai
130+ working-directory : ./janestreet /lib/bonsai
150131 run : opam exec -- dune runtest --profile release
0 commit comments