-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: test wasm on windows #1796
Closed
CI: test wasm on windows #1796
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
69d6618
CI: test wasm on windows
hhugo 336f15f
WIP
hhugo 4b12d81
WIP
hhugo 2d65cd1
WIP
hhugo 935f988
WIP
hhugo 39b34e7
WIP
hhugo d2ae8f8
WIP
hhugo cb5cabe
no sleep
hhugo e9240ca
5.3 effect syntax
hhugo f1a0a7f
WIP
hhugo 178e6a8
WIP
hhugo 22565af
WIP
hhugo 78cb4dc
WIP
hhugo be753c1
WIP
hhugo 4d07ad1
WIP
hhugo b94dc61
Update build-wasm_of_ocaml.yml
hhugo 1c90615
WIP
hhugo 6c5d2c6
Pin dune
vouillon 52dcd72
Short dir name
vouillon 28a2bfa
WIP
vouillon 21262ab
WIP
vouillon 7fc5b90
shorter names
hhugo 41d721f
WIP
hhugo a3ca5d6
shorter names
hhugo d374d7d
WIP
hhugo ba54716
WIP
hhugo 0b87a9f
WIP
vouillon d5ad99e
WIP
vouillon 008e239
WIP
vouillon b4d6e0d
WIP
vouillon 4a34c64
WIP
vouillon 9a5e0b7
WIP
hhugo cdad738
WIP
hhugo e9d04fc
Update ci_setup.ml
hhugo 44b7e07
WIP
vouillon e81d097
WIP
vouillon f88fda2
WIP
vouillon c962838
WIP
vouillon a565e83
WIP
vouillon 891e806
WIP
vouillon 26f5d48
WIP
vouillon dda5aa3
WIP
vouillon 47da34e
clean-up
vouillon 5794b91
DEBUG
vouillon 180a842
DEBUG
vouillon ff24e37
DEBUG
vouillon a6edf03
DEBUG
vouillon 48b6ac7
WIP
vouillon 5f2daf5
WIP
vouillon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,11 @@ jobs: | |
separate_compilation: true | ||
jane_street_tests: false | ||
all_jane_street_tests: false | ||
- os: windows-latest | ||
ocaml-compiler: "5.2" | ||
separate_compilation: true | ||
jane_street_tests: true | ||
all_jane_street_tests: false | ||
- os: ubuntu-latest | ||
ocaml-compiler: "5.2" | ||
separate_compilation: true | ||
|
@@ -48,7 +53,7 @@ jobs: | |
|
||
steps: | ||
- name: Set git to use LF | ||
if: ${{ matrix.os == 'windows-latest' && matrix.ocaml-compiler < 5.2 }} | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to have the tests pass in presence of CRLF |
||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
|
@@ -57,15 +62,15 @@ jobs: | |
- name: Checkout tree | ||
uses: actions/checkout@v4 | ||
with: | ||
path: wasm_of_ocaml | ||
path: w | ||
|
||
- name: Checkout Jane Street opam repository | ||
if: matrix.jane_street_tests | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: janestreet/opam-repository | ||
ref: 41c89c7824533f6b63cc5b6d75e6ddb1441d1520 | ||
path: janestreet/opam-repository | ||
path: j/opam-repository | ||
|
||
- name: Set-up Node.js | ||
uses: actions/setup-node@v4 | ||
|
@@ -86,16 +91,25 @@ jobs: | |
# 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: ./wasm_of_ocaml | ||
run: opam pin -n --with-version `< VERSION` . | ||
working-directory: ./w | ||
run: opam pin . -n --with-version dev | ||
|
||
- name: Checkout Jane Street packages | ||
if: matrix.jane_street_tests | ||
run: | | ||
opam repo add js janestreet/opam-repository | ||
opam repo add js j/opam-repository | ||
opam install opam-format ocamlfind dune graphics cmdliner | ||
opam exec -- ocaml wasm_of_ocaml/tools/ci_setup.ml | ||
opam exec -- dune exec --root w tools/ci_setup.exe j | ||
|
||
- name: Pin Jane Street packages | ||
if: ${{ ! matrix.jane_street_tests }} | ||
|
@@ -106,86 +120,88 @@ jobs: | |
opam pin add -n ppx_expect.v0.16.1 https://github.com/ocaml-wasm/ppx_expect.git#wasm | ||
|
||
- name: Install wasm_of_ocaml and its test dependencies | ||
working-directory: ./wasm_of_ocaml | ||
working-directory: ./w | ||
run: | | ||
opam install `basename -s .opam *.opam` num cohttp-lwt-unix ppx_expect cstruct | ||
opam install . | ||
opam install num cohttp-lwt-unix ppx_expect cstruct uucp | ||
|
||
- name: Run tests | ||
if: ${{ matrix.separate_compilation }} | ||
working-directory: ./wasm_of_ocaml | ||
working-directory: ./w | ||
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 | ||
working-directory: ./w | ||
run: opam exec -- dune build @runtest-wasm --profile with-effects | ||
|
||
- name: Run Base tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/base | ||
if: ${{ matrix.all_jane_street_tests || matrix.os == 'windows-latest' }} | ||
working-directory: ./j/lib/base | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Base bigstring tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/base_bigstring | ||
working-directory: ./j/lib/base_bigstring | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Core tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/core | ||
working-directory: ./j/lib/core | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bignum tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/bignum | ||
if: ${{ matrix.all_jane_street_tests || matrix.os == 'windows-latest' }} | ||
working-directory: ./j/lib/bignum | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bin_prot tests | ||
# tests fails on windows | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/bin_prot | ||
working-directory: ./j/lib/bin_prot | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run String_dict tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/string_dict | ||
working-directory: ./j/lib/string_dict | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Zarith tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/zarith_stubs_js | ||
working-directory: ./j/lib/zarith_stubs_js | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Virtual_dom tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/virtual_dom | ||
working-directory: ./j/lib/virtual_dom | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bonsai tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/bonsai_test | ||
working-directory: ./j/lib/bonsai_test | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bonsai web tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/bonsai_web_test | ||
working-directory: ./j/lib/bonsai_web_test | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bonsai web components' tests | ||
if: matrix.all_jane_street_tests | ||
working-directory: ./janestreet/lib/bonsai_web_components | ||
working-directory: ./j/lib/bonsai_web_components | ||
run: opam exec -- dune runtest | ||
|
||
- name: Run Bonsai tests (release profile) | ||
if: ${{ ! matrix.separate_compilation }} | ||
working-directory: ./janestreet/lib/bonsai_test | ||
working-directory: ./j/lib/bonsai_test | ||
run: opam exec -- dune runtest --profile release | ||
|
||
- name: Run Bonsai web tests (release profile) | ||
if: ${{ ! matrix.separate_compilation }} | ||
working-directory: ./janestreet/lib/bonsai_web_test | ||
working-directory: ./j/lib/bonsai_web_test | ||
run: opam exec -- dune runtest --profile release | ||
|
||
- name: Run Bonsai web components' tests (release profile) | ||
if: ${{ ! matrix.separate_compilation }} | ||
working-directory: ./janestreet/lib/bonsai_web_components | ||
working-directory: ./j/lib/bonsai_web_components | ||
run: opam exec -- dune runtest --profile release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vouillon,
jane_street_tests
currently doesn't change whether we perform more and less tests. Is that expected ?