ci: docker_tag=ext | enable reference-types (RUSTFLAGS + wasm-bindgen --reference-types)
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 3m46s

This commit is contained in:
4NK CI Bot 2025-09-18 11:08:49 +00:00
parent 01ad5a3816
commit 2dda47534b

View File

@ -35,11 +35,14 @@ 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"
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