ci: remove serde_core/wasm32v1-none workarounds, re-enable 35+ disabled jobs
The serde_core + Rust 1.88 issue only affects wasm32v1-none target. wasm32-unknown-unknown works fine, and wasm-builder falls back to it automatically when wasm32v1-none is not installed. - Remove all `rustup target add wasm32v1-none` steps (12 files) - Remove SKIP_WASM_BUILD=1 env vars added as workaround (28 occurrences) - Re-enable quick-benchmarks job (tests.yml) - Re-enable check-core-crypto-features job (checks.yml) - Re-enable 15 build/zombienet jobs (build-publish-images.yml) - Re-enable test-pezframe-examples-compile-to-wasm and test-deterministic-wasm jobs (tests-misc.yml) Tracking: #355, #357, #358 Upstream: https://github.com/serde-rs/serde/issues/3021 (still open)
This commit is contained in:
@@ -43,9 +43,6 @@ jobs:
|
|||||||
rustup show
|
rustup show
|
||||||
rustup +nightly show
|
rustup +nightly show
|
||||||
|
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
BIZINIKIWI_RUNTIME_TARGET: riscv
|
BIZINIKIWI_RUNTIME_TARGET: riscv
|
||||||
|
|||||||
@@ -28,15 +28,12 @@ jobs:
|
|||||||
uses: ./.github/workflows/reusable-preflight.yml
|
uses: ./.github/workflows/reusable-preflight.yml
|
||||||
|
|
||||||
### Build ########################
|
### Build ########################
|
||||||
# TEMPORARILY DISABLED: All build jobs require WASM but serde_core + Rust 1.88 + wasm32 bug prevents WASM build
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
build-linux-stable:
|
build-linux-stable:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -51,9 +48,6 @@ jobs:
|
|||||||
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 '*'
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -98,7 +92,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-linux-stable-pezcumulus:
|
build-linux-stable-pezcumulus:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -108,8 +101,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -135,7 +126,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-test-teyrchain:
|
build-test-teyrchain:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -145,8 +135,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -176,7 +164,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-test-collators:
|
build-test-collators:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -184,8 +171,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -216,7 +201,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-malus:
|
build-malus:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -224,8 +208,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -255,7 +237,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-linux-bizinikiwi:
|
build-linux-bizinikiwi:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -265,8 +246,6 @@ jobs:
|
|||||||
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 '*'
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -301,7 +280,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
build-templates-node:
|
build-templates-node:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -309,8 +287,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: build
|
- name: build
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -340,15 +316,11 @@ jobs:
|
|||||||
|
|
||||||
### Build zombienet test artifacts ########################
|
### Build zombienet test artifacts ########################
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: wasm32v1-none target causes serde_core + Rust 1.88 bug
|
|
||||||
# Also bridges/testing directory doesn't exist in the repo
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
prepare-bridges-zombienet-artifacts:
|
prepare-bridges-zombienet-artifacts:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -356,8 +328,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add 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
|
||||||
@@ -376,14 +346,11 @@ jobs:
|
|||||||
path: artifacts.tar
|
path: artifacts.tar
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: wasm32v1-none target causes serde_core + Rust 1.88 bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
prepare-pezkuwi-zombienet-artifacts:
|
prepare-pezkuwi-zombienet-artifacts:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -391,8 +358,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add 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
|
||||||
@@ -411,14 +376,11 @@ jobs:
|
|||||||
path: artifacts.tar
|
path: artifacts.tar
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: wasm32v1-none target causes serde_core + Rust 1.88 bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
prepare-pezcumulus-zombienet-artifacts:
|
prepare-pezcumulus-zombienet-artifacts:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -426,8 +388,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add 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
|
||||||
@@ -446,11 +406,8 @@ jobs:
|
|||||||
path: artifacts.tar
|
path: artifacts.tar
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: wasm32v1-none target causes serde_core + Rust 1.88 bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
prepare-teyrchain-templates-zombienet-artifacts:
|
prepare-teyrchain-templates-zombienet-artifacts:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
@@ -458,8 +415,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add 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
|
||||||
@@ -699,7 +654,7 @@ jobs:
|
|||||||
- build-malus
|
- build-malus
|
||||||
- build-linux-bizinikiwi
|
- build-linux-bizinikiwi
|
||||||
- build-templates-node
|
- build-templates-node
|
||||||
if: false # Disabled until serde_core upstream fix - all build jobs are disabled
|
if: always() && !cancelled()
|
||||||
outputs:
|
outputs:
|
||||||
build_success: ${{ steps.check_success.outputs.build_success }}
|
build_success: ${{ steps.check_success.outputs.build_success }}
|
||||||
steps:
|
steps:
|
||||||
@@ -719,7 +674,6 @@ jobs:
|
|||||||
|
|
||||||
trigger-zombienet-pezkuwi:
|
trigger-zombienet-pezkuwi:
|
||||||
needs: [preflight, confirm-required-build-jobs-passed]
|
needs: [preflight, confirm-required-build-jobs-passed]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
uses: ./.github/workflows/zombienet_pezkuwi.yml
|
uses: ./.github/workflows/zombienet_pezkuwi.yml
|
||||||
with:
|
with:
|
||||||
build_run_id: ${{ github.run_id }}
|
build_run_id: ${{ github.run_id }}
|
||||||
@@ -727,7 +681,6 @@ jobs:
|
|||||||
|
|
||||||
trigger-zombienet-pezcumulus:
|
trigger-zombienet-pezcumulus:
|
||||||
needs: [preflight, confirm-required-build-jobs-passed]
|
needs: [preflight, confirm-required-build-jobs-passed]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
uses: ./.github/workflows/zombienet_pezcumulus.yml
|
uses: ./.github/workflows/zombienet_pezcumulus.yml
|
||||||
with:
|
with:
|
||||||
build_run_id: ${{ github.run_id }}
|
build_run_id: ${{ github.run_id }}
|
||||||
@@ -735,7 +688,6 @@ jobs:
|
|||||||
|
|
||||||
trigger-zombienet-bizinikiwi:
|
trigger-zombienet-bizinikiwi:
|
||||||
needs: [preflight, confirm-required-build-jobs-passed]
|
needs: [preflight, confirm-required-build-jobs-passed]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
uses: ./.github/workflows/zombienet_bizinikiwi.yml
|
uses: ./.github/workflows/zombienet_bizinikiwi.yml
|
||||||
with:
|
with:
|
||||||
build_run_id: ${{ github.run_id }}
|
build_run_id: ${{ github.run_id }}
|
||||||
@@ -743,7 +695,6 @@ jobs:
|
|||||||
|
|
||||||
trigger-zombienet-teyrchain-template:
|
trigger-zombienet-teyrchain-template:
|
||||||
needs: [preflight, confirm-required-build-jobs-passed]
|
needs: [preflight, confirm-required-build-jobs-passed]
|
||||||
if: false # Disabled until serde_core upstream fix
|
|
||||||
uses: ./.github/workflows/zombienet_teyrchain-template.yml
|
uses: ./.github/workflows/zombienet_teyrchain-template.yml
|
||||||
with:
|
with:
|
||||||
build_run_id: ${{ github.run_id }}
|
build_run_id: ${{ github.run_id }}
|
||||||
@@ -757,7 +708,7 @@ jobs:
|
|||||||
- trigger-zombienet-pezcumulus
|
- trigger-zombienet-pezcumulus
|
||||||
- trigger-zombienet-bizinikiwi
|
- trigger-zombienet-bizinikiwi
|
||||||
- trigger-zombienet-teyrchain-template
|
- trigger-zombienet-teyrchain-template
|
||||||
if: false # Disabled until serde_core upstream fix
|
if: always() && !cancelled()
|
||||||
steps:
|
steps:
|
||||||
- name: Check zombienet success
|
- name: Check zombienet success
|
||||||
id: check_success
|
id: check_success
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
# Use local templates from the repo instead of cloning from external repos
|
# Use local templates from the repo instead of cloning from external repos
|
||||||
PEZKUWI_TEMPLATE_SOURCE: ${{ github.workspace }}/templates
|
PEZKUWI_TEMPLATE_SOURCE: ${{ github.workspace }}/templates
|
||||||
# Skip WASM build due to serde_core compatibility issues
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
# Fix HOME directory mismatch in containers (rustup requires this)
|
# Fix HOME directory mismatch in containers (rustup requires this)
|
||||||
HOME: /root
|
HOME: /root
|
||||||
steps:
|
steps:
|
||||||
@@ -212,8 +210,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
# Use local templates from the repo instead of cloning from external repos
|
# Use local templates from the repo instead of cloning from external repos
|
||||||
PEZKUWI_TEMPLATE_SOURCE: ${{ github.workspace }}/templates
|
PEZKUWI_TEMPLATE_SOURCE: ${{ github.workspace }}/templates
|
||||||
# Skip WASM build due to serde_core compatibility issues
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -39,29 +39,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||||
|
|
||||||
# Clean stale caches from other workflows that ran on this VPS runner.
|
|
||||||
# Each VPS has limited disk; leftover caches from docs/tests can fill it.
|
|
||||||
- name: Clean stale caches
|
|
||||||
run: |
|
|
||||||
echo "Disk before cleanup:"
|
|
||||||
df -h /cache 2>/dev/null || df -h /
|
|
||||||
for dir in /cache/cargo-target/*/; do
|
|
||||||
[ "$dir" = "/cache/cargo-target/pezkuwi-sdk/" ] && continue
|
|
||||||
echo "Removing stale cache: $dir"
|
|
||||||
rm -rf "$dir"
|
|
||||||
done
|
|
||||||
echo "Disk after cleanup:"
|
|
||||||
df -h /cache 2>/dev/null || df -h /
|
|
||||||
|
|
||||||
- name: Rust Cache
|
- name: Rust Cache
|
||||||
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
|
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
|
||||||
with:
|
with:
|
||||||
shared-key: clippy
|
shared-key: clippy
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
|
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
|
|
||||||
- name: script
|
- name: script
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -101,43 +84,34 @@ jobs:
|
|||||||
# experimental code may rely on try-runtime and vice-versa
|
# experimental code may rely on try-runtime and vice-versa
|
||||||
cargo check --locked --all --features try-runtime,experimental --quiet
|
cargo check --locked --all --features try-runtime,experimental --quiet
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: check-core-crypto-features
|
check-core-crypto-features:
|
||||||
# Reason: serde 1.0.218+ introduces serde_core which causes duplicate panic_impl
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
# when building wasm32 with --features=serde. alloy-consensus requires serde >= 1.0.226
|
needs: [preflight]
|
||||||
# so we cannot pin to older serde.
|
if: ${{ needs.preflight.outputs.changes_rust }}
|
||||||
# Tracking issue: https://github.com/pezkuwichain/pezkuwi-sdk/issues/355
|
timeout-minutes: 30
|
||||||
# Upstream: https://github.com/serde-rs/serde/issues (to be filed)
|
container:
|
||||||
# TODO: Re-enable when serde fixes the wasm32 + no_std + serde feature combination
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
#
|
steps:
|
||||||
# check-core-crypto-features:
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||||
# runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
- name: script
|
||||||
# needs: [preflight]
|
id: required
|
||||||
# if: ${{ needs.preflight.outputs.changes_rust }}
|
run: |
|
||||||
# timeout-minutes: 30
|
cd bizinikiwi/primitives/core
|
||||||
# container:
|
./check-features-variants.sh
|
||||||
# image: ${{ needs.preflight.outputs.IMAGE }}
|
cd -
|
||||||
# steps:
|
cd bizinikiwi/primitives/application-crypto
|
||||||
# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
./check-features-variants.sh
|
||||||
# - name: script
|
cd -
|
||||||
# id: required
|
cd bizinikiwi/primitives/keyring
|
||||||
# run: |
|
./check-features-variants.sh
|
||||||
# cd bizinikiwi/primitives/core
|
cd -
|
||||||
# ./check-features-variants.sh
|
|
||||||
# cd -
|
|
||||||
# cd bizinikiwi/primitives/application-crypto
|
|
||||||
# ./check-features-variants.sh
|
|
||||||
# cd -
|
|
||||||
# cd bizinikiwi/primitives/keyring
|
|
||||||
# ./check-features-variants.sh
|
|
||||||
# cd -
|
|
||||||
# name of this job must be unique across all workflows
|
# name of this job must be unique across all workflows
|
||||||
# otherwise GitHub will mark all these jobs as required
|
# otherwise GitHub will mark all these jobs as required
|
||||||
confirm-required-checks-passed:
|
confirm-required-checks-passed:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: All checks passed
|
name: All checks passed
|
||||||
# If any new job gets added, be sure to add it to this array
|
# If any new job gets added, be sure to add it to this array
|
||||||
# NOTE: check-core-crypto-features temporarily removed - see comment above
|
needs: [cargo-clippy, check-try-runtime, check-core-crypto-features]
|
||||||
needs: [cargo-clippy, check-try-runtime]
|
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ jobs:
|
|||||||
- /cache/cargo-target/pezkuwi-sdk-docs:/cache/target
|
- /cache/cargo-target/pezkuwi-sdk-docs:/cache/target
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
steps:
|
steps:
|
||||||
@@ -68,7 +67,6 @@ jobs:
|
|||||||
volumes:
|
volumes:
|
||||||
- /cache/cargo-target/pezkuwi-sdk-docs:/cache/target
|
- /cache/cargo-target/pezkuwi-sdk-docs:/cache/target
|
||||||
env:
|
env:
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
RUSTDOCFLAGS: "-Dwarnings --default-theme=ayu --html-in-header ./docs/sdk/assets/header.html --extend-css ./docs/sdk/assets/theme.css --html-after-content ./docs/sdk/assets/after-content.html"
|
RUSTDOCFLAGS: "-Dwarnings --default-theme=ayu --html-in-header ./docs/sdk/assets/header.html --extend-css ./docs/sdk/assets/theme.css --html-after-content ./docs/sdk/assets/after-content.html"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ jobs:
|
|||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-D warnings"
|
RUSTFLAGS: "-D warnings"
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,6 @@ jobs:
|
|||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
strategy:
|
strategy:
|
||||||
@@ -45,8 +41,6 @@ jobs:
|
|||||||
curl -Lsf --show-error -o resolc "$ASSET_URL"
|
curl -Lsf --show-error -o resolc "$ASSET_URL"
|
||||||
chmod +x resolc
|
chmod +x resolc
|
||||||
./resolc --version
|
./resolc --version
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: Building the dependencies from the Pezkuwi SDK
|
- name: Building the dependencies from the Pezkuwi SDK
|
||||||
run: cargo build --locked --profile release -p pezpallet-revive-eth-rpc -p pez-revive-dev-node
|
run: cargo build --locked --profile release -p pezpallet-revive-eth-rpc -p pez-revive-dev-node
|
||||||
- name: Checkout the Differential Tests Repository
|
- name: Checkout the Differential Tests Repository
|
||||||
@@ -111,9 +105,6 @@ jobs:
|
|||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-C debug-assertions"
|
RUSTFLAGS: "-C debug-assertions"
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
@@ -122,8 +113,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
- name: script
|
- name: script
|
||||||
run: |
|
run: |
|
||||||
cargo build --locked --release -p pezpallet-revive-eth-rpc --bin eth-rpc
|
cargo build --locked --release -p pezpallet-revive-eth-rpc --bin eth-rpc
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ jobs:
|
|||||||
# -Cinstrument-coverage slows everything down but it is necessary for code coverage
|
# -Cinstrument-coverage slows everything down but it is necessary for code coverage
|
||||||
# https://doc.rust-lang.org/rustc/instrument-coverage.html
|
# https://doc.rust-lang.org/rustc/instrument-coverage.html
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings -Cinstrument-coverage"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings -Cinstrument-coverage"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
LLVM_PROFILE_FILE: "/__w/pezkuwi-sdk/pezkuwi-sdk/target/coverage/cargo-test-${{ matrix.ci_node_index }}-%p-%m.profraw"
|
LLVM_PROFILE_FILE: "/__w/pezkuwi-sdk/pezkuwi-sdk/target/coverage/cargo-test-${{ matrix.ci_node_index }}-%p-%m.profraw"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -39,9 +39,6 @@ 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"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -73,9 +70,6 @@ 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"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -32,15 +32,10 @@ jobs:
|
|||||||
WASM_BUILD_RUSTFLAGS: "-C debug-assertions -D warnings"
|
WASM_BUILD_RUSTFLAGS: "-C debug-assertions -D warnings"
|
||||||
# Ensure we run the UI tests.
|
# Ensure we run the UI tests.
|
||||||
RUN_UI_TESTS: 1
|
RUN_UI_TESTS: 1
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
- name: script
|
- name: script
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -62,9 +57,6 @@ 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"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -94,17 +86,11 @@ jobs:
|
|||||||
RUST_TOOLCHAIN: stable
|
RUST_TOOLCHAIN: stable
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
|
|
||||||
- name: script
|
- name: script
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
@@ -143,15 +129,10 @@ 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"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_TARGET_DIR: /cache/target
|
CARGO_TARGET_DIR: /cache/target
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
- name: script
|
- name: script
|
||||||
id: required
|
id: required
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ jobs:
|
|||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-C debug-assertions"
|
RUSTFLAGS: "-C debug-assertions"
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -48,37 +45,28 @@ jobs:
|
|||||||
cd ../application-crypto
|
cd ../application-crypto
|
||||||
cargo build --locked --no-default-features --features full_crypto
|
cargo build --locked --no-default-features --features full_crypto
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: test-pezframe-examples-compile-to-wasm
|
test-pezframe-examples-compile-to-wasm:
|
||||||
# Reason: serde_core 1.0.228+ causes duplicate lang item error when building
|
timeout-minutes: 20
|
||||||
# wasm32-unknown-unknown target. The error: "duplicate lang item in crate alloc: exchange_malloc"
|
# into one job
|
||||||
# This is the same issue that disabled check-core-crypto-features in checks.yml
|
needs: [preflight, test-full-crypto-feature]
|
||||||
# Tracking issue: https://github.com/pezkuwichain/pezkuwi-sdk/issues/355
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
# TODO: Re-enable when serde upstream fixes the wasm32 + no_std combination
|
if: ${{ needs.preflight.outputs.changes_rust }}
|
||||||
#
|
container:
|
||||||
# test-pezframe-examples-compile-to-wasm:
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
# timeout-minutes: 20
|
env:
|
||||||
# # into one job
|
# Enable debug assertions since we are running optimized builds for testing
|
||||||
# needs: [preflight, test-full-crypto-feature]
|
# but still want to have debug assertions.
|
||||||
# runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
RUSTFLAGS: "-C debug-assertions"
|
||||||
# if: ${{ needs.preflight.outputs.changes_rust }}
|
RUST_BACKTRACE: 1
|
||||||
# container:
|
steps:
|
||||||
# image: ${{ needs.preflight.outputs.IMAGE }}
|
- name: Checkout
|
||||||
# env:
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# # Enable debug assertions since we are running optimized builds for testing
|
- name: script
|
||||||
# # but still want to have debug assertions.
|
run: |
|
||||||
# RUSTFLAGS: "-C debug-assertions"
|
cd bizinikiwi/pezframe/examples/offchain-worker/
|
||||||
# RUST_BACKTRACE: 1
|
RUSTFLAGS="--cfg bizinikiwi_runtime" cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
||||||
# steps:
|
cd ../basic
|
||||||
# - name: Checkout
|
RUSTFLAGS="--cfg bizinikiwi_runtime" cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
||||||
# 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/
|
|
||||||
# RUSTFLAGS="--cfg bizinikiwi_runtime" cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
|
||||||
# cd ../basic
|
|
||||||
# RUSTFLAGS="--cfg bizinikiwi_runtime" cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
|
||||||
|
|
||||||
test-pezframe-ui:
|
test-pezframe-ui:
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
@@ -90,7 +78,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-C debug-assertions -D warnings"
|
RUSTFLAGS: "-C debug-assertions -D warnings"
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
RUN_UI_TESTS: 1
|
RUN_UI_TESTS: 1
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
steps:
|
steps:
|
||||||
@@ -113,44 +100,36 @@ jobs:
|
|||||||
cargo test --locked -q --profile testnet -p pezsp-api-test ui
|
cargo test --locked -q --profile testnet -p pezsp-api-test ui
|
||||||
cargo test --locked -q --profile testnet --manifest-path bizinikiwi/primitives/runtime-interface/Cargo.toml ui
|
cargo test --locked -q --profile testnet --manifest-path bizinikiwi/primitives/runtime-interface/Cargo.toml ui
|
||||||
|
|
||||||
# TEMPORARILY DISABLED: test-deterministic-wasm
|
test-deterministic-wasm:
|
||||||
# Reason: This test REQUIRES WASM builds to verify deterministic compilation.
|
timeout-minutes: 40
|
||||||
# serde_core 1.0.228+ causes duplicate lang item error when building WASM targets.
|
needs: [preflight, test-full-crypto-feature]
|
||||||
# Error: "duplicate lang item in crate alloc: exchange_malloc"
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
# SKIP_WASM_BUILD=1 makes this test meaningless as there are no WASM files to checksum.
|
if: ${{ needs.preflight.outputs.changes_rust }}
|
||||||
# Tracking issue: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
container:
|
||||||
# TODO: Re-enable when serde upstream fixes the wasm32 + no_std combination
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
#
|
env:
|
||||||
# test-deterministic-wasm:
|
WASM_BUILD_NO_COLOR: 1
|
||||||
# timeout-minutes: 40
|
steps:
|
||||||
# needs: [preflight, test-full-crypto-feature]
|
- name: Checkout
|
||||||
# runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
# if: ${{ needs.preflight.outputs.changes_rust }}
|
|
||||||
# container:
|
- name: Clean cargo cache to free disk space
|
||||||
# image: ${{ needs.preflight.outputs.IMAGE }}
|
run: |
|
||||||
# env:
|
cargo clean 2>/dev/null || true
|
||||||
# WASM_BUILD_NO_COLOR: 1
|
rm -rf ~/.cargo/registry/cache 2>/dev/null || true
|
||||||
# steps:
|
rm -rf ~/.cargo/git/db 2>/dev/null || true
|
||||||
# - name: Checkout
|
|
||||||
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- name: script
|
||||||
#
|
run: |
|
||||||
# - name: Clean cargo cache to free disk space
|
# build runtime
|
||||||
# run: |
|
cargo build -q --locked --release -p zagros-runtime -p pezkuwichain-runtime
|
||||||
# cargo clean 2>/dev/null || true
|
# make checksum
|
||||||
# rm -rf ~/.cargo/registry/cache 2>/dev/null || true
|
sha256sum target/release/wbuild/*-runtime/target/wasm32-unknown-unknown/release/*.wasm > checksum.sha256
|
||||||
# rm -rf ~/.cargo/git/db 2>/dev/null || true
|
cargo clean
|
||||||
#
|
# build again
|
||||||
# - name: script
|
cargo build -q --locked --release -p zagros-runtime -p pezkuwichain-runtime
|
||||||
# run: |
|
# confirm checksum
|
||||||
# # build runtime
|
sha256sum -c checksum.sha256
|
||||||
# cargo build -q --locked --release -p zagros-runtime -p pezkuwichain-runtime
|
|
||||||
# # make checksum
|
|
||||||
# sha256sum target/release/wbuild/*-runtime/target/wasm32-unknown-unknown/release/*.wasm > checksum.sha256
|
|
||||||
# cargo clean
|
|
||||||
# # build again
|
|
||||||
# cargo build -q --locked --release -p zagros-runtime -p pezkuwichain-runtime
|
|
||||||
# # confirm checksum
|
|
||||||
# sha256sum -c checksum.sha256
|
|
||||||
|
|
||||||
cargo-check-benches:
|
cargo-check-benches:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
@@ -162,10 +141,6 @@ jobs:
|
|||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -284,9 +259,6 @@ jobs:
|
|||||||
rm -rf ~/.cargo/registry/cache 2>/dev/null || true
|
rm -rf ~/.cargo/registry/cache 2>/dev/null || true
|
||||||
rm -rf ~/.cargo/git/db 2>/dev/null || true
|
rm -rf ~/.cargo/git/db 2>/dev/null || true
|
||||||
|
|
||||||
# NOTE: wasm32v1-none target removed - serde_core + Rust 1.88 bug
|
|
||||||
# wasm-builder will fallback to wasm32-unknown-unknown automatically
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
id: tests
|
id: tests
|
||||||
env:
|
env:
|
||||||
@@ -294,9 +266,6 @@ 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"
|
||||||
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
run: |
|
run: |
|
||||||
cargo build --bin pezkuwi-execute-worker --bin pezkuwi-prepare-worker --profile testnet --verbose --locked
|
cargo build --bin pezkuwi-execute-worker --bin pezkuwi-prepare-worker --profile testnet --verbose --locked
|
||||||
mkdir -p ./artifacts
|
mkdir -p ./artifacts
|
||||||
@@ -339,9 +308,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
|
|
||||||
- name: script
|
- name: script
|
||||||
run: |
|
run: |
|
||||||
cargo build --locked -p zagros-runtime --features metadata-hash
|
cargo build --locked -p zagros-runtime --features metadata-hash
|
||||||
@@ -397,8 +363,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-D warnings"
|
RUSTFLAGS: "-D warnings"
|
||||||
CI_JOB_NAME: cargo-check-each-crate
|
CI_JOB_NAME: cargo-check-each-crate
|
||||||
# Skip WASM build to avoid serde_core duplicate lang item error
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -413,9 +377,6 @@ jobs:
|
|||||||
shared-key: check-each-crate-${{ matrix.index }}
|
shared-key: check-each-crate-${{ matrix.index }}
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
|
|
||||||
- name: Add wasm32v1-none target
|
|
||||||
run: rustup target add wasm32v1-none || true
|
|
||||||
|
|
||||||
- name: script
|
- name: script
|
||||||
run: |
|
run: |
|
||||||
PYTHONUNBUFFERED=x .github/scripts/check-each-crate.py ${{ matrix.index }} ${{ strategy.job-total }}
|
PYTHONUNBUFFERED=x .github/scripts/check-each-crate.py ${{ matrix.index }} ${{ strategy.job-total }}
|
||||||
@@ -425,8 +386,6 @@ jobs:
|
|||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER_MACOS }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER_MACOS }}
|
||||||
if: ${{ needs.preflight.outputs.changes_rust }}
|
if: ${{ needs.preflight.outputs.changes_rust }}
|
||||||
env:
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
- name: Set rust version from env file
|
- name: Set rust version from env file
|
||||||
@@ -491,18 +450,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: All test misc tests passed
|
name: All test misc tests passed
|
||||||
# If any new job gets added, be sure to add it to this array
|
# If any new job gets added, be sure to add it to this array
|
||||||
# NOTE: test-pezframe-examples-compile-to-wasm removed - disabled due to serde_core wasm32 issue
|
|
||||||
# NOTE: test-deterministic-wasm removed - disabled due to serde_core wasm32 issue (requires WASM builds)
|
|
||||||
needs:
|
needs:
|
||||||
- test-full-crypto-feature
|
- test-full-crypto-feature
|
||||||
# - test-pezframe-examples-compile-to-wasm # disabled - serde_core wasm32 issue
|
- test-pezframe-examples-compile-to-wasm
|
||||||
- test-pezframe-ui
|
- test-pezframe-ui
|
||||||
|
- test-deterministic-wasm
|
||||||
- cargo-check-benches
|
- cargo-check-benches
|
||||||
- pez-node-bench-regression-guard
|
- pez-node-bench-regression-guard
|
||||||
- test-node-metrics
|
- test-node-metrics
|
||||||
- check-tracing
|
- check-tracing
|
||||||
- cargo-check-each-crate
|
- cargo-check-each-crate
|
||||||
# - test-deterministic-wasm # disabled - serde_core wasm32 issue (requires WASM builds)
|
|
||||||
# - cargo-hfuzz remove from required for now, as it's flaky
|
# - cargo-hfuzz remove from required for now, as it's flaky
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -19,11 +19,9 @@ jobs:
|
|||||||
uses: ./.github/workflows/reusable-preflight.yml
|
uses: ./.github/workflows/reusable-preflight.yml
|
||||||
|
|
||||||
# This job runs all benchmarks defined in the `/bin/node/runtime` once to check that there are no errors.
|
# This job runs all benchmarks defined in the `/bin/node/runtime` once to check that there are no errors.
|
||||||
# TEMPORARILY DISABLED: Requires WASM but serde_core + Rust 1.88 + wasm32 bug prevents WASM build
|
|
||||||
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
|
|
||||||
quick-benchmarks:
|
quick-benchmarks:
|
||||||
needs: [preflight]
|
needs: [preflight]
|
||||||
if: false # Disabled until serde_core upstream fix
|
if: ${{ needs.preflight.outputs.changes_rust }}
|
||||||
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
runs-on: ${{ needs.preflight.outputs.RUNNER }}
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
container:
|
container:
|
||||||
@@ -56,8 +54,6 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
continue-on-error: true # this rarely triggers in practice
|
continue-on-error: true # this rarely triggers in practice
|
||||||
env:
|
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -81,7 +77,6 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||||
env:
|
env:
|
||||||
SKIP_WASM_BUILD: 1
|
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user