ci: docker_tag=ext | revert reference-types; compile wasm without externref requirements
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 3m37s

This commit is contained in:
4NK CI Bot 2025-09-18 11:20:01 +00:00
parent 2dda47534b
commit 70f3a30f64

View File

@ -35,14 +35,12 @@ 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
# Activer les reference-types au moment de la compilation et de la génération JS
ENV RUSTFLAGS="-C target-feature=+reference-types"
# Build standard sans reference-types (compatibilité wasm-bindgen)
RUN --mount=type=ssh cargo build --target wasm32-unknown-unknown --profile dev && \
wasm-bindgen target/wasm32-unknown-unknown/debug/sdk_client.wasm \
--out-dir /build/ihm_client/pkg \
--typescript \
--target bundler \
--reference-types \
--debug
FROM node:20-alpine