diff --git a/.github/workflows/nbnet.yml b/.github/workflows/nbnet.yml index dd90778..fc39f30 100644 --- a/.github/workflows/nbnet.yml +++ b/.github/workflows/nbnet.yml @@ -92,7 +92,7 @@ jobs: - name: Install prerequisites run: sudo apt-get install build-essential cmake git python2 g++ -y - name: Install emsdk - run: ./bin/github-actions/install_emsdk.sh + run: ./bin/github-actions/install_emsdk.sh 3.1.64 - name: Install nbnet NPM dependencies run: | npm update @@ -148,7 +148,7 @@ jobs: - name: Install prerequisites run: brew install cmake coreutils - name: Install emsdk - run: ./bin/github-actions/install_emsdk.sh + run: ./bin/github-actions/install_emsdk.sh 3.1.64 - name: Install nbnet NPM dependencies run: | npm update @@ -189,7 +189,7 @@ jobs: - name: Download and build libdatachannel run: ./bin/github-actions/download_and_build_libdatachannel.sh - name: Install emsdk - run: ./bin/github-actions/install_emsdk.sh + run: ./bin/github-actions/install_emsdk.sh 3.1.64 - name: Install nbnet NPM dependencies run: | npm update diff --git a/bin/github-actions/install_emsdk.sh b/bin/github-actions/install_emsdk.sh index acec664..832c281 100755 --- a/bin/github-actions/install_emsdk.sh +++ b/bin/github-actions/install_emsdk.sh @@ -1,8 +1,10 @@ #!/bin/bash +emsdk_version=$1 + git clone https://github.com/emscripten-core/emsdk.git cd emsdk -./emsdk install latest -./emsdk activate latest +./emsdk install $emsdk_version +./emsdk activate $emsdk_version source ./emsdk_env.sh emcc -v # make sure emcc is available