diff --git a/.github/workflows/build-publish-images.yml b/.github/workflows/build-publish-images.yml index bac9a628..0086c219 100644 --- a/.github/workflows/build-publish-images.yml +++ b/.github/workflows/build-publish-images.yml @@ -43,12 +43,13 @@ jobs: # Enable debug assertions since we are running optimized builds for testing # but still want to have debug assertions. RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Configure git safe.directory run: git config --global --add safe.directory '*' + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -99,10 +100,11 @@ jobs: image: ${{ needs.preflight.outputs.IMAGE }} env: RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -134,10 +136,11 @@ jobs: image: ${{ needs.preflight.outputs.IMAGE }} env: RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -171,11 +174,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -210,11 +213,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -248,13 +251,13 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Configure git safe.directory run: git config --global --add safe.directory '*' + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -293,11 +296,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build id: required run: | @@ -336,11 +339,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build run: | cargo build --locked --profile testnet -p pezkuwi-test-malus --bin malus --bin pezkuwi-prepare-worker --bin pezkuwi-execute-worker @@ -368,11 +371,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build run: | cargo nextest --manifest-path pezkuwi/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata,zombie-ci --archive-file pezkuwi-zombienet-tests.tar.zst @@ -400,11 +403,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build run: | cargo nextest --manifest-path pezcumulus/zombienet/zombienet-sdk/Cargo.toml archive --locked --features zombie-ci --archive-file pezcumulus-zombienet-tests.tar.zst @@ -429,11 +432,11 @@ jobs: timeout-minutes: 120 container: image: ${{ needs.preflight.outputs.IMAGE }} - env: - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none - name: build run: | cargo nextest --manifest-path templates/zombienet/Cargo.toml archive --locked --features zombienet --archive-file teyrchain-templates-zombienet-tests.tar.zst diff --git a/.github/workflows/check-pezframe-omni-bencher.yml b/.github/workflows/check-pezframe-omni-bencher.yml index 1d36d16b..a8cfb701 100644 --- a/.github/workflows/check-pezframe-omni-bencher.yml +++ b/.github/workflows/check-pezframe-omni-bencher.yml @@ -26,7 +26,6 @@ jobs: RUST_BACKTRACE: "full" WASM_BUILD_NO_COLOR: 1 WASM_BUILD_RUSTFLAGS: "-C debug-assertions" - WASM_BUILD_STD: "0" RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info" timeout-minutes: 60 container: @@ -35,6 +34,9 @@ jobs: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none + - name: Clean cargo cache to free disk space run: | cargo clean 2>/dev/null || true @@ -83,11 +85,13 @@ jobs: PACKAGE_NAME: ${{ matrix.runtime.package }} FLAGS: ${{ matrix.runtime.bench_flags }} RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info" - WASM_BUILD_STD: "0" steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none + - name: script (benchmark ${{ matrix.bench_cmd }}) id: required shell: bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5008cc45..f655f956 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,9 +42,10 @@ jobs: shared-key: quick-benchmarks cache-on-failure: true + - name: Install wasm32v1-none target + run: rustup target add wasm32v1-none + - name: script - env: - WASM_BUILD_STD: "0" run: cargo run --locked --release -p pezstaging-node-cli --bin bizinikiwi-node --features runtime-benchmarks --quiet -- benchmark pezpallet --chain dev --pezpallet "*" --extrinsic "*" --steps 2 --repeat 1 --quiet # cf https://github.com/pezkuwichain/pezkuwi-sdk/issues/1652