5959 separate_compilation : false
6060 jane_street_tests : true
6161 all_jane_street_tests : false
62+ - os : ubuntu-latest
63+ os-name : Ubuntu
64+ ocaml-compiler : " ocaml-variants.5.2.0+ox"
65+ separate_compilation : true
66+ jane_street_tests : true
67+ all_jane_street_tests : true
6268
6369 runs-on : ${{ matrix.os }}
6470
@@ -76,13 +82,20 @@ jobs:
7682 path : wasm_of_ocaml
7783
7884 - name : Checkout Jane Street opam repository
79- if : matrix.jane_street_tests
85+ if : matrix.jane_street_tests && matrix.ocaml-compiler != 'ocaml-variants.5.2.0+ox'
8086 uses : actions/checkout@v5
8187 with :
8288 repository : janestreet/opam-repository
8389 ref : 2819773f29b6f6c14b918eae3cb40c8ff6b22d0e
8490 path : janestreet/opam-repository
8591
92+ - name : Checkout OxCaml opam repository
93+ if : matrix.jane_street_tests && matrix.ocaml-compiler == 'ocaml-variants.5.2.0+ox'
94+ uses : actions/checkout@v5
95+ with :
96+ repository : oxcaml/opam-repository
97+ path : janestreet/opam-repository
98+
8699 - name : Set-up Node.js
87100 uses : actions/setup-node@v6
88101 with :
@@ -92,6 +105,16 @@ jobs:
92105 uses : ocaml/setup-ocaml@v3
93106 with :
94107 ocaml-compiler : ${{ matrix.ocaml-compiler }}
108+ if : matrix.ocaml-compiler != 'ocaml-variants.5.2.0+ox'
109+
110+ - name : Set-up OxCaml ${{ matrix.ocaml-compiler }}
111+ uses : ocaml/setup-ocaml@v3
112+ with :
113+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
114+ opam-repositories : |
115+ default: https://github.com/ocaml/opam-repository.git
116+ ox: https://github.com/oxcaml/opam-repository.git
117+ if : matrix.ocaml-compiler == 'ocaml-variants.5.2.0+ox'
95118
96119 - name : Set-up Binaryen
97120@@ -110,7 +133,13 @@ jobs:
110133
111134 - name : Pin wasm_of_ocaml
112135 working-directory : ./wasm_of_ocaml
113- run : opam pin . -n --with-version dev
136+ run : opam pin . -n --with-version 6.0.1+ox
137+
138+ - name : Pin specific packages for OxCaml
139+ run : |
140+ opam pin add -n https://github.com/vouillon/qcheck.git#oxcaml
141+ opam pin add -n zarith 1.12+ox
142+ if : matrix.ocaml-compiler == 'ocaml-variants.5.2.0+ox'
114143
115144 - name : Checkout Jane Street packages
116145 if : matrix.jane_street_tests
0 commit comments