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