@@ -34,35 +34,20 @@ RUN mkdir janestreet \
3434
3535# Install dependencies
3636WORKDIR /bench-dir/js_of_ocaml
37- COPY --chown=opam:opam ./*.opam ./
38- RUN opam pin -yn --with-version=dev .
39- RUN opam install -y --deps-only js_of_ocaml-compiler \
40- && opam install opam-format stringext uucp cstruct bigstringaf \
37+ COPY --chown=opam:opam js_of_ocaml-compiler.opam .
38+ RUN opam install -y --deps-only ./js_of_ocaml-compiler.opam \
39+ && opam install opam-format stringext uucp cstruct \
4140 && opam clean
4241
43- # Install js_of_ocaml / wasm_of_ocaml
44- COPY --chown=opam:opam . ./
45- RUN opam install -y wasm_of_ocaml-compiler \
46- && opam clean
47-
48- # Compile partial render table benchmark
49- # RUN opam exec -- dune exec tools/ci_setup.exe ../janestreet . \
50- # && opam install ppxlib.0.35.0 # temporary workaround \
51- # && opam clean
52-
42+ # Prepare partial render table benchmark
43+ COPY --chown=opam:opam dune-project ./
44+ COPY --chown=opam:opam tools ./tools
5345RUN 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
46+ && opam exec -- dune build --root ../janestreet --profile release lib/bonsai_web_components/partial_render_table/bench/bin/main.bc-for-jsoo \
47+ && opam remove js_of_ocaml-compiler ojs \
48+ && opam clean
5949
60- # CAMLBOY
61- WORKDIR /bench-dir
62- RUN opam install brr \
63- && opam clean \
64- && git clone --depth 1 https://github.com/ocaml-wasm/CAMLBOY -b node \
65- && cd CAMLBOY \
66- && opam exec -- dune build --root . --profile release ./bin/web
50+ # Copy sources
51+ COPY --chown=opam:opam . ./
6752
6853WORKDIR /bench-dir/js_of_ocaml/benchmarks
0 commit comments