ci: install wasm-bindgen-cli from source to fix glibc error
Some checks failed
Build MIPS Binary / build (push) Failing after 10m54s

This commit is contained in:
spinline
2026-02-06 21:05:50 +03:00
parent 4dfce1096e
commit 3187ed76b0

View File

@@ -43,12 +43,22 @@ jobs:
node -v node -v
npm -v npm -v
- name: Install Trunk - name: Install Trunk & Tools
run: | run: |
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
if ! command -v trunk &> /dev/null; then if ! command -v trunk &> /dev/null; then
cargo install trunk --locked cargo install trunk --locked
fi fi
# Install wasm-bindgen-cli from source because the prebuilt binary downloaded
# by trunk relies on a newer glibc than this runner has.
REQUIRED_VER="0.2.108"
if ! command -v wasm-bindgen &> /dev/null || [ "$(wasm-bindgen --version | cut -d' ' -f2)" != "$REQUIRED_VER" ]; then
echo "Installing wasm-bindgen-cli $REQUIRED_VER from source..."
cargo install wasm-bindgen-cli --version "$REQUIRED_VER" --force
else
echo "wasm-bindgen-cli $REQUIRED_VER already installed."
fi
- name: Build Frontend - name: Build Frontend
run: | run: |