diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca5ce6f1..a668ac77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - name: Setup emsdk uses: mymindstorm/setup-emsdk@v11 with: - version: 3.0.0 + version: 3.1.20 actions-cache-folder: "emsdk-cache" - name: Install premake run: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c9b1972f..832d4e80 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,7 +45,7 @@ git checkout origin/master cd ../../.. ``` -4. Install [Emscripten](https://emscripten.org/docs/getting_started/downloads.html). We build against 3.0.0 in rive-wasm +4. Install [Emscripten](https://emscripten.org/docs/getting_started/downloads.html). We build against 3.1.20 in rive-wasm 5. Install [Premake5](https://premake.github.io/) and add it to your path 6. `cd` back into the `js` folder and run `./build.sh` from your terminal/shell to build the latest WASM and builds for JS API's (high and low level) into the `npm/` folder. This may take some time, grab a coffee! This should finish with Webpack building the JS bundles for the high-level API packages (more on that below) diff --git a/wasm/premake5.lua b/wasm/premake5.lua index 54b0239e..e9069461 100644 --- a/wasm/premake5.lua +++ b/wasm/premake5.lua @@ -38,6 +38,7 @@ linkoptions { "-s NO_EXIT_RUNTIME=1", "-s STRICT=1", "-flto", + "-s DYNAMIC_EXECUTION=0", "-s ALLOW_MEMORY_GROWTH=1", "-s DISABLE_EXCEPTION_CATCHING=1", "-s WASM=1",