Skip to content

CI: add contract WASM size check to prevent exceeding Soroban limits #748

@Ejirowebfi

Description

@Ejirowebfi

Description

Soroban contracts have a maximum WASM size limit. There is no CI check to catch size regressions before deployment. A bloated contract will fail to deploy silently.

Tasks

  • Add a step in .github/workflows/ci.yml that builds the optimized WASM
  • Assert the file size is below 64 KB (current Soroban limit)
  • Fail the CI job with a descriptive message if the limit is exceeded

Acceptance Criteria

  • CI fails with a clear message when the WASM exceeds the size limit
  • CI passes for the current optimized WASM
  • The size threshold is configurable via a workflow input

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions