Skip to content

Add WASM build and Stellar CLI optimization step to contracts CI #342

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Description

The contracts CI job runs cargo test but never builds the WASM artifact. The deployable binary could fail to compile while CI passes green.

What Needs to Happen

  • Add wasm32-unknown-unknown to Rust toolchain step
  • Add: cargo build --target wasm32-unknown-unknown --release
  • Install stellar-cli and run stellar contract optimize on the output
  • Upload optimized WASM as CI artifact
  • CI fails if WASM compilation fails

Files

  • .github/workflows/ (contracts job)

Acceptance Criteria

  • WASM builds successfully in CI
  • Optimized WASM uploaded as artifact
  • CI fails if WASM compilation breaks

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programinfraCI/CD and infrastructure

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions