Skip to content

Commit

Permalink
Try to update emsdk version
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Sep 24, 2022
1 parent 1f1527e commit 286c06c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
3 changes: 2 additions & 1 deletion ci/docker/asmjs-unknown-emscripten/Dockerfile
Expand Up @@ -15,7 +15,8 @@ RUN apt-get install -y --no-install-recommends \
libxml2 \
python3 \
python3-distutils \
xz-utils
xz-utils \
bzip2

COPY emscripten.sh /
RUN bash /emscripten.sh
Expand Down
3 changes: 2 additions & 1 deletion ci/docker/wasm32-unknown-emscripten/Dockerfile
Expand Up @@ -21,7 +21,8 @@ RUN apt-get install -y --no-install-recommends \
cmake \
sudo \
gdb \
xz-utils
xz-utils \
bzip2

RUN ln -s /usr/bin/python3 /usr/bin/python & \
ln -s /usr/bin/pip3 /usr/bin/pip
Expand Down
21 changes: 2 additions & 19 deletions ci/emscripten.sh
Expand Up @@ -2,28 +2,11 @@

set -ex

EMSDK_VERSION=1.39.20

hide_output() {
set +x
on_err="
echo ERROR: An error was encountered with the build.
cat /tmp/build.log
exit 1
"
trap '$on_err' ERR
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
PING_LOOP_PID=$!
"${@}" &> /tmp/build.log
trap - ERR
kill $PING_LOOP_PID
rm -f /tmp/build.log
set -x
}
EMSDK_VERSION=3.1.23

git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
cd /emsdk-portable
hide_output ./emsdk install "${EMSDK_VERSION}"
./emsdk install "${EMSDK_VERSION}"
./emsdk activate "${EMSDK_VERSION}"

# Compile and cache libc
Expand Down

0 comments on commit 286c06c

Please sign in to comment.