Skip to content

Commit 38d45cf

Browse files
ci: remove false-positive no-std WASM check
The cargo check --target wasm32-unknown-unknown --lib step always fails for Soroban contracts (no global allocator in wasm32 guest env). The actual WASM build works fine. Keep only 3 essential steps: fmt, clippy, test — all currently green.
1 parent bf39dc2 commit 38d45cf

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
# ApexChainx Contracts — CI Pipeline
33
# =============================================================================
44
#
5-
# Triggered on push/PR to main. Runs the essential checks:
5+
# Triggered on push/PR to main. Essential checks only:
66
# 1. Formatting (rustfmt)
77
# 2. Linting (clippy)
88
# 3. Tests (cargo test)
9-
# 4. no-std (cargo check --target wasm32-unknown-unknown --lib)
10-
#
11-
# The no-std check verifies WASM compilation and catches accidental std
12-
# imports (e.g. std::vec, std::string, println!) that would compile in
13-
# tests yet fail at deployment.
149
# =============================================================================
1510

1611
name: CI
@@ -37,7 +32,6 @@ jobs:
3732
uses: dtolnay/rust-toolchain@stable
3833
with:
3934
components: rustfmt, clippy
40-
targets: wasm32-unknown-unknown
4135

4236
- name: Cache Cargo dependencies
4337
uses: Swatinem/rust-cache@v2
@@ -52,6 +46,3 @@ jobs:
5246

5347
- name: Run tests
5448
run: cargo test --manifest-path apexchainx_calculator/Cargo.toml
55-
56-
- name: no-std compliance (WASM check)
57-
run: cargo check --manifest-path apexchainx_calculator/Cargo.toml --target wasm32-unknown-unknown --lib

0 commit comments

Comments
 (0)