Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Jan 15, 2025
1 parent e9d04fc commit 44b7e07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-wasm_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,24 @@ jobs:
- name: Pin faked binaryen-bin package
# It's faster to use a cached version
run: opam install --fake binaryen-bin

# Work-around a race between reinstalling mingw-w64-shims
# (because of conf-pkg-config optional dep) and installing other
# packages that implicitly depend on mingw-w64-shims.
- run: opam install conf-pkg-config conf-mingw-w64-gcc-i686
if: runner.os == 'Windows'

- name: Pin dune
run: opam pin add -n dune https://github.com/vouillon/dune.git#inline-tests-wasm

- name: Pin wasm_of_ocaml
working-directory: ./w
run: opam pin -n --with-version 6.0 .
run: cat VERSION | xargs opam pin . -n --with-version

- name: Checkout Jane Street packages
if: matrix.jane_street_tests
run: |
opam repo add js j/opam-repository
opam pin add ocamlfind --dev
opam install opam-format ocamlfind dune graphics cmdliner
opam exec -- dune exec --root w tools/ci_setup.exe j
Expand Down Expand Up @@ -142,9 +141,9 @@ jobs:
run: opam exec -- dune runtest

- name: Run Base bigstring tests
if: matrix.all_jane_street_tests
if: ${{ matrix.all_jane_street_tests && matrix.os != 'windows-latest'}}
working-directory: ./j/lib/base_bigstring
run: opam exec -- dune runtest --sandbox=none
run: opam exec -- dune runtest

- name: Run Core tests
if: matrix.all_jane_street_tests
Expand Down
27 changes: 13 additions & 14 deletions runtime/wasm/dune
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,19 @@
args
(glob_files *.wat))
(action
(progn
(run
wasm-merge
-g
--enable-gc
--enable-exception-handling
--enable-reference-types
--enable-tail-call
--enable-strings
--enable-multivalue
--enable-bulk-memory
%{read-lines:args}
-o
%{target}))))
(run
wasm-merge
-g
--enable-gc
--enable-exception-handling
--enable-reference-types
--enable-tail-call
--enable-strings
--enable-multivalue
--enable-bulk-memory
%{read-lines:args}
-o
%{target})))

(rule
(target args)
Expand Down

0 comments on commit 44b7e07

Please sign in to comment.