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.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user