ci: add scripts to install Emscripten 4.0.9

This commit is contained in:
Brad King
2025-06-03 09:22:59 -04:00
committed by Quinn Powell
parent c6da668b13
commit 33082bf817
3 changed files with 29 additions and 0 deletions

1
.gitlab/.gitignore vendored
View File

@@ -2,6 +2,7 @@
/5.15.1-0-202009071110*
/bcc*
/cmake*
/emsdk
/iar
/intel
/ispc*

3
.gitlab/ci/emsdk-env.sh Normal file
View File

@@ -0,0 +1,3 @@
.gitlab/ci/emsdk.sh
. .gitlab/emsdk/emsdk_env.sh
em++ --version

25
.gitlab/ci/emsdk.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -e
case "$(uname -s)-$(uname -m)" in
Linux-x86_64)
;;
*)
echo "Unrecognized platform $(uname -s)-$(uname -m)"
exit 1
;;
esac
cd .gitlab
version=4.0.9
dirname="emsdk-$version"
filename="$dirname.tar.gz"
curl -OJL "https://github.com/emscripten-core/emsdk/archive/refs/tags/$version.tar.gz"
tar xzf "$filename"
mv "$dirname" emsdk
emsdk/emsdk install "$version"
emsdk/emsdk activate "$version"
rm -f "$filename"