Skip to content
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: run wasm integration test in CI #2535

Merged
merged 6 commits into from
Feb 27, 2025
Merged

ci: run wasm integration test in CI #2535

merged 6 commits into from
Feb 27, 2025

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Feb 27, 2025

No description provided.

@a10y a10y changed the title run wasm integration test at CI ci: run wasm integration test in CI Feb 27, 2025
@a10y a10y marked this pull request as ready for review February 27, 2025 13:12
@a10y a10y requested review from AdamGS and robert3005 February 27, 2025 13:12
targets: "wasm32-wasip1"
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v3.1
- run: cargo build --target wasm32-wasip1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried many times to get this to work properly with wasm32-unknown-unknown but seemingly it builds a module with wasmbindgen imports that I can't seem to shim in and is targeted at running in the browser. I didn't have much luck taking the resulting bundle and running with with node/bun either. Perhaps there's a better way but compiling as a WASI binary was the only thing I was able to get working in CI

@a10y
Copy link
Contributor Author

a10y commented Feb 27, 2025

This creates a new binary crate outside of our workspace that has a path dependency on vortex and for now just runs the compressor on a simple array and prints the output. We could certainly extend it with file IO or whatever else we want to make sure gets tested

@a10y a10y merged commit 55e8d7f into develop Feb 27, 2025
26 checks passed
@a10y a10y deleted the aduffy/wasm-integ branch February 27, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants