Support wasm-pack

This commit is contained in:
Taiki Endo
2022-01-09 18:53:31 +09:00
parent aab5a1fdfb
commit ba3d801fa2
5 changed files with 16 additions and 7 deletions

View File

@@ -153,6 +153,15 @@ for tool in "${tools[@]}"; do
# https://snapcraft.io/install/valgrind/ubuntu
sudo snap install valgrind --classic
;;
wasm-pack)
# https://rustwasm.github.io/wasm-pack/installer
case "${OSTYPE}" in
linux* | darwin*) ;;
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
esac
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused https://rustwasm.github.io/wasm-pack/installer/init.sh | sh
;;
*) bail "unsupported tool '${tool}'" ;;
esac