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
Some checks failed
Build and Push Docker image (ext) / docker (push) Failing after 3m46s
This commit is contained in:
parent
01ad5a3816
commit
2dda47534b
@ -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
|
# Build du WebAssembly (cargo) + wasm-bindgen
|
||||||
WORKDIR /build/sdk_client
|
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 && \
|
RUN --mount=type=ssh cargo build --target wasm32-unknown-unknown --profile dev && \
|
||||||
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 \
|
--out-dir /build/ihm_client/pkg \
|
||||||
--typescript \
|
--typescript \
|
||||||
--target bundler \
|
--target bundler \
|
||||||
|
--reference-types \
|
||||||
--debug
|
--debug
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user