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

Test WASM/JS on CI #88

Open
sffc opened this issue Sep 24, 2021 · 5 comments
Open

Test WASM/JS on CI #88

sffc opened this issue Sep 24, 2021 · 5 comments
Labels
documentation Improvements or additions to documentation techdebt Internal issue with minimal external impact

Comments

@sffc
Copy link
Contributor

sffc commented Sep 24, 2021

The GitHub Actions CI currently only runs make in example/c and example/cpp. We should really be testing the WASM/JS on CI as well. Related: there are no instructions I can find explaining how to rebuild the example.wasm file and run the demo locally.

@sffc sffc added techdebt Internal issue with minimal external impact documentation Improvements or additions to documentation labels Sep 24, 2021
@sffc
Copy link
Contributor Author

sffc commented Sep 24, 2021

For anyone else who is wondering: here is how I was able to run the WASM example:

  1. At the top level, run cargo build --target wasm32-unknown-unknown
  2. At the top level, start an HTTP server with a command such as python3 -m http.server
  3. In your browser, navigate to http://localhost:8000/example/js/
  4. Open the JS console to view the output

@Manishearth

This comment has been minimized.

@Manishearth

This comment has been minimized.

@sffc

This comment has been minimized.

@Manishearth

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation techdebt Internal issue with minimal external impact
Projects
None yet
Development

No branches or pull requests

2 participants