Skip to content

Commit

Permalink
CI: partial revert 1782, restore wasm ci (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo authored Jan 7, 2025
1 parent 6aebdf5 commit 3d645b9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@

*.ml linguist-language=OCaml
*.mli linguist-language=OCaml

# We are pinning wasm_of_ocaml using this file in the CI. This would
# fail on Windows otherwise.
VERSION -text
23 changes: 20 additions & 3 deletions .github/workflows/build-wasm_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Set git to use LF
if: ${{ matrix.os == 'windows-latest' && matrix.ocaml-compiler < 5.2 }}
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.ignorecase false
- name: Checkout tree
uses: actions/checkout@v4
with:
path: wasm_of_ocaml

- name: Checkout Jane Street opam repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,20 +73,28 @@ jobs:
# It's faster to use a cached version
run: opam install --fake binaryen-bin

- name: Pin wasm_of_ocaml
working-directory: ./wasm_of_ocaml
run: opam pin -n --with-version `< VERSION` .

- name: Checkout Jane Street packages
run: |
opam install opam-format ocamlfind dune graphics cmdliner sexplib0.v0.16.0
opam exec -- ocaml tools/ci_setup.ml
opam exec -- ocaml wasm_of_ocaml/tools/ci_setup.ml
- name: Install dependencies
run: opam install . --deps-only --with-test
- name: Install wasm_of_ocaml and its test dependencies
working-directory: ./wasm_of_ocaml
run: |
opam install `basename -s .opam *.opam` num cohttp-lwt-unix ppx_expect cstruct
- name: Run tests
if: ${{ matrix.separate_compilation }}
working-directory: ./wasm_of_ocaml
run: opam exec -- dune build @runtest-wasm

- name: Run tests with CPS effects
if: ${{ matrix.ocaml-compiler >= '5.' && matrix.separate_compilation }}
working-directory: ./wasm_of_ocaml
run: opam exec -- dune build @runtest-wasm --profile with-effects

- name: Run Base tests
Expand Down

0 comments on commit 3d645b9

Please sign in to comment.