From 578190da50f483effc41dbe029a9bcae67025ff1 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Fri, 24 Apr 2026 00:59:18 +0300 Subject: [PATCH] ci: install wasm32v1-none target globally, migrate wasm-check to wasm32v1-none wasm32-unknown-unknown with build-std=core,alloc on Rust >=1.88 now ships a pre-built std in the sysroot, causing E0152 duplicate core lang items when serde_core is compiled. Switching to wasm32v1-none (target_os=none, no sysroot std) eliminates the conflict. Also fixes wasm-check getrandom compile_error which only triggers on wasm*-unknown-unknown, not wasm32v1-none. --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73fa5f13..249ab651 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,7 @@ default: before_script: - rustup show - rustc --version && cargo --version + - rustup target add wasm32v1-none cache: key: files: @@ -341,8 +342,7 @@ wasm-check: stage: test needs: [check-try-runtime] script: - - rustup target add wasm32-unknown-unknown - - cargo check -p pezkuwichain-runtime --locked --target wasm32-unknown-unknown + - cargo check -p pezkuwichain-runtime --locked --target wasm32v1-none rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_MERGE_REQUEST_IID