Sign inSign up

nnaumenko/emscripten-firefox

By nnaumenko

•Updated over 7 years ago

Modification of trzeci/emscripten-ubuntu with Firefox browser added.

Image
0

1.3K

nnaumenko/emscripten-firefox repository overview

Modification of trzeci/emscripten-ubuntu with Firefox browser added which allows to build WebAssembly code and run it directly in the container with Firefox browser and Emrun.

Repo: https://gitlab.com/nnaumenko/wasm-ci⁠

When compiling, include --emrun option for emcc, for example:

emcc --emrun -s WASM=1 -o mywasm.html mywasm.cpp

Then run the compiled WebAssembly program with:

emrun --browser firefox mywasm.html

Emrun will capture stdout and stderr, and return exit code equal to return value of the main(); this allows to use a single container to run automated tests, check for overall tests passing/failing, and identify failure point.

Repo contains a minimal example for Gitlab-CI.

Tag summary

Content type

Image

Digest

Size

504.2 MB

Last updated

over 7 years ago

docker pull nnaumenko/emscripten-firefox