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
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 1m50s
This commit is contained in:
parent
c89d956821
commit
6ef5186407
@ -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
|
# Build du WebAssembly avec accès SSH pour les dépendances
|
||||||
WORKDIR /build/sdk_client
|
WORKDIR /build/sdk_client
|
||||||
# Activer explicitement reference-types pour résoudre l'erreur wasm-bindgen
|
# Activer reference-types côté wasm-bindgen (via wasm-pack)
|
||||||
RUN --mount=type=ssh RUSTFLAGS="-C target-feature=+reference-types" wasm-pack build --out-dir ../ihm_client/pkg --target bundler --dev
|
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
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -59,4 +60,3 @@ RUN chmod +x /start-dev.sh
|
|||||||
EXPOSE 3003 80
|
EXPOSE 3003 80
|
||||||
|
|
||||||
CMD ["/start-dev.sh"]
|
CMD ["/start-dev.sh"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user