From a4340e13a0756cf9c872a608a91b13dd8b2cd106 Mon Sep 17 00:00:00 2001 From: WandererXII <43043181+WandererXII@users.noreply.github.com> Date: Sun, 12 Nov 2023 01:04:49 +0100 Subject: [PATCH] Use emsdk:3.1.43 not latest --- .github/workflows/make-wasm.yml | 4 ++-- .github/workflows/release.yml | 12 ++++++------ script/wasm_build.cmd | 4 ++-- script/wasm_build.sh | 4 ++-- script/wasm_docker_build.js | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/make-wasm.yml b/.github/workflows/make-wasm.yml index 5c4a283a8..3b2b8ed8d 100644 --- a/.github/workflows/make-wasm.yml +++ b/.github/workflows/make-wasm.yml @@ -38,11 +38,11 @@ jobs: - name: docker pull run: | - docker pull emscripten/emsdk:latest + docker pull emscripten/emsdk:3.1.43 - name: build wasm run: | - docker run --rm -v ${PWD}/main:/src emscripten/emsdk:latest node script/wasm_build.js ${{ matrix.edition }} + docker run --rm -v ${PWD}/main:/src emscripten/emsdk:3.1.43 node script/wasm_build.js ${{ matrix.edition }} - uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfa73adf0..300e31c80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -636,11 +636,11 @@ jobs: - name: docker pull run: | - docker pull emscripten/emsdk:latest + docker pull emscripten/emsdk:3.1.43 - name: build wasm run: | - docker run --rm -v ${PWD}/main:/src emscripten/emsdk:latest node script/wasm_build.js ${{ matrix.edition }} + docker run --rm -v ${PWD}/main:/src emscripten/emsdk:3.1.43 node script/wasm_build.js ${{ matrix.edition }} - uses: actions/upload-artifact@v2 with: @@ -666,11 +666,11 @@ jobs: - name: docker pull run: | - docker pull emscripten/emsdk:latest + docker pull emscripten/emsdk:3.1.43 - name: build wasm run: | - docker run --rm -v ${PWD}/main:/src emscripten/emsdk:latest node script/wasm_build.js ${{ matrix.edition }} + docker run --rm -v ${PWD}/main:/src emscripten/emsdk:3.1.43 node script/wasm_build.js ${{ matrix.edition }} - uses: actions/upload-artifact@v2 with: @@ -696,11 +696,11 @@ jobs: - name: docker pull run: | - docker pull emscripten/emsdk:latest + docker pull emscripten/emsdk:3.1.43 - name: build wasm run: | - docker run --rm -v ${PWD}/main:/src emscripten/emsdk:latest node script/wasm_build.js ${{ matrix.edition }} + docker run --rm -v ${PWD}/main:/src emscripten/emsdk:3.1.43 node script/wasm_build.js ${{ matrix.edition }} - uses: actions/upload-artifact@v2 with: diff --git a/script/wasm_build.cmd b/script/wasm_build.cmd index af6faf7ab..31bd496d9 100644 --- a/script/wasm_build.cmd +++ b/script/wasm_build.cmd @@ -1,5 +1,5 @@ @echo off cd %~dp0 cd .. -docker pull emscripten/emsdk:latest -docker run --rm -v %CD%:/src emscripten/emsdk:latest node script/wasm_build.js +docker pull emscripten/emsdk:3.1.43 +docker run --rm -v %CD%:/src emscripten/emsdk:3.1.43 node script/wasm_build.js diff --git a/script/wasm_build.sh b/script/wasm_build.sh index 9a9fa4c84..9793faf95 100755 --- a/script/wasm_build.sh +++ b/script/wasm_build.sh @@ -1,7 +1,7 @@ #!/bin/bash pushd `dirname $0` pushd ../ -docker pull emscripten/emsdk:latest -docker run --rm -v ${PWD}:/src emscripten/emsdk:latest node script/wasm_build.js +docker pull emscripten/emsdk:3.1.43 +docker run --rm -v ${PWD}:/src emscripten/emsdk:3.1.43 node script/wasm_build.js popd popd diff --git a/script/wasm_docker_build.js b/script/wasm_docker_build.js index ad075a255..1b282f038 100755 --- a/script/wasm_docker_build.js +++ b/script/wasm_docker_build.js @@ -14,7 +14,7 @@ if(!fs.existsSync("source/Makefile")) { (async () => { await new Promise((resolve) => { let child = exec( - `docker pull emscripten/emsdk:latest`, + `docker pull emscripten/emsdk:3.1.43`, { cwd: cwd, stdio: "inherit" }, (_error, _stdout, _stderr) => { resolve(); }, ); @@ -23,7 +23,7 @@ if(!fs.existsSync("source/Makefile")) { }); await new Promise((resolve) => { let child = exec( - `docker run --rm -v ${cwd}:/src emscripten/emsdk:latest node script/wasm_build.js ${args.join(" ")}`, + `docker run --rm -v ${cwd}:/src emscripten/emsdk:3.1.43 node script/wasm_build.js ${args.join(" ")}`, { cwd: cwd, stdio: "inherit" }, (_error, _stdout, _stderr) => { resolve(); }, );