From 5602586e555cb51f44130481d366dc1846b00e5f Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Mon, 26 Jan 2026 15:42:21 +0300 Subject: [PATCH] fix: add wasm32v1-none target to CI workflows Add rustup target add wasm32v1-none step to: - tests-misc.yml: test-pezframe-examples-compile-to-wasm, cargo-check-benches, check-metadata-hash, cargo-check-each-crate - tests-linux-stable.yml: test-linux-stable-int, test-linux-stable-runtime-benchmarks, test-linux-stable, test-linux-stable-no-try-runtime - build-misc.yml: build-runtimes-polkavm This fixes WASM build failures in container jobs where the wasm32v1-none target is not available by default. --- .github/workflows/build-misc.yml | 3 +++ .github/workflows/tests-linux-stable.yml | 8 ++++++++ .github/workflows/tests-misc.yml | 13 ++++++++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-misc.yml b/.github/workflows/build-misc.yml index d8d7aea7..d59f3fe6 100644 --- a/.github/workflows/build-misc.yml +++ b/.github/workflows/build-misc.yml @@ -43,6 +43,9 @@ jobs: rustup show rustup +nightly show + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true + - name: Build env: BIZINIKIWI_RUNTIME_TARGET: riscv diff --git a/.github/workflows/tests-linux-stable.yml b/.github/workflows/tests-linux-stable.yml index 3d89558f..dee95d1d 100644 --- a/.github/workflows/tests-linux-stable.yml +++ b/.github/workflows/tests-linux-stable.yml @@ -36,6 +36,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true - name: script id: required run: WASM_BUILD_NO_COLOR=1 cargo test -p pezstaging-node-cli --release --locked -- --ignored @@ -56,6 +58,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true - name: script id: required run: cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet --cargo-quiet @@ -86,6 +90,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true - name: script id: required run: | @@ -126,6 +132,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true - name: script id: required run: | diff --git a/.github/workflows/tests-misc.yml b/.github/workflows/tests-misc.yml index b15d9c57..1a0e412e 100644 --- a/.github/workflows/tests-misc.yml +++ b/.github/workflows/tests-misc.yml @@ -61,6 +61,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true - name: script run: | cd bizinikiwi/pezframe/examples/offchain-worker/ @@ -149,11 +151,14 @@ jobs: # either PR (including forks) or merge group (main repo) ref: ${{ matrix.branch == 'master' && matrix.branch || '' }} + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true + - name: script shell: bash run: | # Fail the step if any command in a pipeline errors out. - set -euo pipefail + set -euo pipefail ARTIFACTS_DIR=./artifacts BENCH_TRIE_READ=::trie::read::small BENCH_NODE_IMPORT=::node::import::sr25519::transfer_keep_alive::paritydb::small @@ -308,6 +313,9 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true + - name: script run: | cargo build --locked -p zagros-runtime --features metadata-hash @@ -375,6 +383,9 @@ jobs: rustup show rustup +nightly show + - name: Add wasm32v1-none target + run: rustup target add wasm32v1-none || true + - name: script run: | PYTHONUNBUFFERED=x .github/scripts/check-each-crate.py ${{ matrix.index }} ${{ strategy.job-total }}