From 19afbf0f04f773979a0c2350fd08f6dfb5b1d670 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Tue, 15 Nov 2022 12:50:07 +0000 Subject: [PATCH] Install a fixed build of emscripten. (#96) We've not seen issues using latest but it's likely to break us eventually. Closes https://github.com/microbit-foundation/micropython-microbit-v2-simulator/issues/15 --- ci-build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci-build.sh b/ci-build.sh index 14c311ce..47b0ac72 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -6,10 +6,11 @@ git submodule update --init lib/micropython-microbit-v2 (cd lib/micropython-microbit-v2 && git submodule update --init lib/micropython) # Emscripten +VERSION="3.1.25" export PYTHON=python3.7 # Needed by Emscripten in Netlify's build image. -git clone https://github.com/emscripten-core/emsdk.git ~/.emsdk -~/.emsdk/emsdk install latest -~/.emsdk/emsdk activate latest +git clone https://github.com/emscripten-core/emsdk.git -b $VERSION ~/.emsdk +~/.emsdk/emsdk install $VERSION +~/.emsdk/emsdk activate $VERSION source ~/.emsdk/emsdk_env.sh npm run test && npm run build