Skip to content

emsdk and wabt Binaries

Latest
Compare
Choose a tag to compare
@lupyuen lupyuen released this 16 Oct 11:54
· 75 commits to mynewt since this release

Do not delete this release!

WebAssembly Simulators will download the emsdk and wabt Binaries here for the GitHub Actions Workflow simulate.yml

Why use emsdk binary instead of building from source? Because emscripten changes often and the emcc build sometimes fails with the error...

json.decoder.JSONDecodeError: Expecting ',' delimiter: line 16 column 47 (char 353)

Why use wabt binary instead of building from source? Because wabt is slow to build.

How emsdk was built...

# Based on https://emscripten.org/docs/getting_started/downloads.html
cd /tmp

# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git

# Enter that directory
cd emsdk

# Download and install the latest SDK tools.
./emsdk install latest

# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

# Show version
emcc --version
emcc --version   

# Package the binary
cd /tmp
tar czvf emsdk.tgz emsdk

# Upload the binary /tmp/emsdk.tgz

How wabt was built...

cd /tmp
git clone --recursive https://github.com/WebAssembly/wabt
cd wabt
mkdir build
cd build
cmake ..
cmake --build .

# Package the binary
cd /tmp
tar czvf wabt.tgz wabt

# Upload the binary /tmp/wabt.tgz

See https://github.com/AppKaki/lvgl-wasm/blob/mynewt/.github/workflows/simulator.yml