ci: docker_tag=ext | wasm-pack: use --reference-types for wasm-bindgen
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 1m50s

This commit is contained in:
4NK CI Bot 2025-09-18 10:42:14 +00:00
parent c89d956821
commit 6ef5186407

View File

@ -33,8 +33,9 @@ RUN --mount=type=ssh git clone -b dev ssh://git@git.4nkweb.com/4nk/sdk_client.gi
# Build du WebAssembly avec accès SSH pour les dépendances
WORKDIR /build/sdk_client
# Activer explicitement reference-types pour résoudre l'erreur wasm-bindgen
RUN --mount=type=ssh RUSTFLAGS="-C target-feature=+reference-types" wasm-pack build --out-dir ../ihm_client/pkg --target bundler --dev
# Activer reference-types côté wasm-bindgen (via wasm-pack)
ENV WASM_BINDGEN_FLAGS="--reference-types"
RUN --mount=type=ssh wasm-pack build --out-dir ../ihm_client/pkg --target bundler --dev
FROM node:20-alpine
WORKDIR /app
@ -59,4 +60,3 @@ RUN chmod +x /start-dev.sh
EXPOSE 3003 80
CMD ["/start-dev.sh"]