ci: docker_tag=ext | ensure wasm-bindgen in PATH + use wasm-bindgen bin
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 3m18s

This commit is contained in:
4NK CI Bot 2025-09-18 10:55:36 +00:00
parent fb54522bce
commit 5884e8d845

View File

@ -19,6 +19,7 @@ RUN apk update && apk add --no-cache \
# Installer wasm-bindgen CLI (0.2.92) et target wasm32 (Rust >=1.81)
RUN cargo install wasm-bindgen-cli --version 0.2.92 --locked && \
rustup target add wasm32-unknown-unknown
ENV PATH="/usr/local/cargo/bin:${PATH}"
# Configuration SSH basique
RUN mkdir -p /root/.ssh && \
@ -35,7 +36,7 @@ RUN --mount=type=ssh git clone -b dev ssh://git@git.4nkweb.com/4nk/sdk_client.gi
# Build du WebAssembly (cargo) + wasm-bindgen
WORKDIR /build/sdk_client
RUN --mount=type=ssh cargo build --target wasm32-unknown-unknown --profile dev && \
/root/.cargo/bin/wasm-bindgen target/wasm32-unknown-unknown/debug/sdk_client.wasm \
wasm-bindgen target/wasm32-unknown-unknown/debug/sdk_client.wasm \
--out-dir /build/ihm_client/pkg \
--typescript \
--target bundler \