@@ -33,27 +33,36 @@ RUN mkdir janestreet \
33
33
&& opam remote add js .
34
34
35
35
# Install dependencies
36
+ WORKDIR /bench-dir/js_of_ocaml
36
37
COPY --chown=opam:opam ./*.opam ./
37
38
RUN 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
39
42
40
43
# Install js_of_ocaml / wasm_of_ocaml
41
44
COPY --chown=opam:opam . ./
42
- RUN opam install -y wasm_of_ocaml-compiler
45
+ RUN opam install -y wasm_of_ocaml-compiler \
46
+ && opam clean
43
47
44
48
# 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
52
59
53
60
# CAMLBOY
61
+ WORKDIR /bench-dir
54
62
RUN opam install brr \
63
+ && opam clean \
55
64
&& git clone --depth 1 https://github.com/ocaml-wasm/CAMLBOY -b node \
56
65
&& cd CAMLBOY \
57
66
&& opam exec -- dune build --root . --profile release ./bin/web
58
67
59
- WORKDIR . /benchmarks
68
+ WORKDIR /bench-dir/js_of_ocaml /benchmarks
0 commit comments