@@ -33,27 +33,36 @@ RUN mkdir janestreet \
3333 && opam remote add js .
3434
3535# Install dependencies
36+ WORKDIR /bench-dir/js_of_ocaml
3637COPY --chown=opam:opam ./*.opam ./
3738RUN opam pin -yn --with-version=dev .
38- RUN opam install -y --deps-only js_of_ocaml-compiler
39+ RUN opam install -y --deps-only js_of_ocaml-compiler \
40+ && opam install opam-format stringext uucp cstruct bigstringaf \
41+ && opam clean
3942
4043# Install js_of_ocaml / wasm_of_ocaml
4144COPY --chown=opam:opam . ./
42- RUN opam install -y wasm_of_ocaml-compiler
45+ RUN opam install -y wasm_of_ocaml-compiler \
46+ && opam clean
4347
4448# Compile partial render table benchmark
45- RUN opam install opam-format stringext uucp cstruct
46- RUN opam exec -- dune exec tools/ci_setup.exe janestreet .
47- RUN opam install ppxlib.0.35.0 # temporary workaround
48- RUN cd janestreet/lib/bonsai_web_components && git config pull.rebase true && git pull
49- RUN eval $(opam env) \
50- && dune build --root janestreet --profile release lib/bonsai_web_components/partial_render_table/bench/bin/main.bc.wasm.js lib/bonsai_web_components/partial_render_table/bench/bin/main.bc.js
51- RUN cp -r janestreet/_build/default/lib/bonsai_web_components/partial_render_table/bench/bin/main.bc.* ./benchmarks/benchmark-partial-render-table
49+ # RUN opam exec -- dune exec tools/ci_setup.exe ../janestreet . \
50+ # && opam install ppxlib.0.35.0 # temporary workaround \
51+ # && opam clean
52+
53+ RUN opam exec -- dune exec tools/ci_setup.exe ../janestreet . \
54+ && opam install ppxlib.0.35.0 \
55+ && eval $(opam env) \
56+ && dune build --root ../janestreet --profile release lib/bonsai_web_components/partial_render_table/bench/bin/main.bc.wasm.js lib/bonsai_web_components/partial_render_table/bench/bin/main.bc.js \
57+ && cp -r ../janestreet/_build/default/lib/bonsai_web_components/partial_render_table/bench/bin/main.bc* ./benchmarks/benchmark-partial-render-table/ \
58+ && rm -rf ../janestreet
5259
5360# CAMLBOY
61+ WORKDIR /bench-dir
5462RUN opam install brr \
63+ && opam clean \
5564 && git clone --depth 1 https://github.com/ocaml-wasm/CAMLBOY -b node \
5665 && cd CAMLBOY \
5766 && opam exec -- dune build --root . --profile release ./bin/web
5867
59- WORKDIR . /benchmarks
68+ WORKDIR /bench-dir/js_of_ocaml /benchmarks
0 commit comments