fix(ci): replace wasm32v1-none with WASM_BUILD_STD=0 in all build jobs
wasm32v1-none pre-built sysroot lacks std, causing memchr compilation failure. Instead, disable build-std via WASM_BUILD_STD=0 and let wasm-builder use the pre-built wasm32-unknown-unknown sysroot which includes std. Affected: 11 build jobs in build-publish-images.yml, 2 benchmark jobs in check-pezframe-omni-bencher.yml.
This commit is contained in:
@@ -43,13 +43,12 @@ jobs:
|
|||||||
# Enable debug assertions since we are running optimized builds for testing
|
# Enable debug assertions since we are running optimized builds for testing
|
||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Configure git safe.directory
|
- name: Configure git safe.directory
|
||||||
run: git config --global --add safe.directory '*'
|
run: git config --global --add safe.directory '*'
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -100,11 +99,10 @@ jobs:
|
|||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -136,11 +134,10 @@ jobs:
|
|||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -174,11 +171,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -213,11 +210,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -251,13 +248,13 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Configure git safe.directory
|
- name: Configure git safe.directory
|
||||||
run: git config --global --add safe.directory '*'
|
run: git config --global --add safe.directory '*'
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -296,11 +293,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -339,11 +336,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cargo build --locked --profile testnet -p pezkuwi-test-malus --bin malus --bin pezkuwi-prepare-worker --bin pezkuwi-execute-worker
|
cargo build --locked --profile testnet -p pezkuwi-test-malus --bin malus --bin pezkuwi-prepare-worker --bin pezkuwi-execute-worker
|
||||||
@@ -371,11 +368,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
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
|
cargo nextest --manifest-path pezkuwi/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata,zombie-ci --archive-file pezkuwi-zombienet-tests.tar.zst
|
||||||
@@ -403,11 +400,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cargo nextest --manifest-path pezcumulus/zombienet/zombienet-sdk/Cargo.toml archive --locked --features zombie-ci --archive-file pezcumulus-zombienet-tests.tar.zst
|
cargo nextest --manifest-path pezcumulus/zombienet/zombienet-sdk/Cargo.toml archive --locked --features zombie-ci --archive-file pezcumulus-zombienet-tests.tar.zst
|
||||||
@@ -432,11 +429,11 @@ jobs:
|
|||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
|
env:
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cargo nextest --manifest-path templates/zombienet/Cargo.toml archive --locked --features zombienet --archive-file teyrchain-templates-zombienet-tests.tar.zst
|
cargo nextest --manifest-path templates/zombienet/Cargo.toml archive --locked --features zombienet --archive-file teyrchain-templates-zombienet-tests.tar.zst
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ jobs:
|
|||||||
RUST_BACKTRACE: "full"
|
RUST_BACKTRACE: "full"
|
||||||
WASM_BUILD_NO_COLOR: 1
|
WASM_BUILD_NO_COLOR: 1
|
||||||
WASM_BUILD_RUSTFLAGS: "-C debug-assertions"
|
WASM_BUILD_RUSTFLAGS: "-C debug-assertions"
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info"
|
RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info"
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -34,9 +35,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
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
|
- name: Clean cargo cache to free disk space
|
||||||
run: |
|
run: |
|
||||||
cargo clean 2>/dev/null || true
|
cargo clean 2>/dev/null || true
|
||||||
@@ -85,13 +83,11 @@ jobs:
|
|||||||
PACKAGE_NAME: ${{ matrix.runtime.package }}
|
PACKAGE_NAME: ${{ matrix.runtime.package }}
|
||||||
FLAGS: ${{ matrix.runtime.bench_flags }}
|
FLAGS: ${{ matrix.runtime.bench_flags }}
|
||||||
RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info"
|
RUST_LOG: "frame_omni_bencher=info,pezkuwi_sdk_frame=info"
|
||||||
|
WASM_BUILD_STD: "0"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- name: Install wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none
|
|
||||||
|
|
||||||
- name: script (benchmark ${{ matrix.bench_cmd }})
|
- name: script (benchmark ${{ matrix.bench_cmd }})
|
||||||
id: required
|
id: required
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user