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.
This commit is contained in:
Kurdistan Tech Ministry committed 2026-04-24 00:59:18 +03:00
1 parent 418c6c92d7
commit 578190da50
1 file changed
+2 -2
+2 -2
View File
@@ -44,6 +44,7 @@ default:
before_script: before_script:
- rustup show - rustup show
- rustc --version && cargo --version - rustc --version && cargo --version
- rustup target add wasm32v1-none
cache: cache:
key: key:
files: files:
@@ -341,8 +342,7 @@ wasm-check:
stage: test stage: test
needs: [check-try-runtime] needs: [check-try-runtime]
script: script:
- rustup target add wasm32-unknown-unknown - cargo check -p pezkuwichain-runtime --locked --target wasm32v1-none
- cargo check -p pezkuwichain-runtime --locked --target wasm32-unknown-unknown
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID