Skip to content

[CONTRACT] Build and publish the WASM artifact in Contract CI #567

Description

@Cedarich

Complexity: Trivial (100)

Description
.github/workflows/contract-ci.yml installs the wasm32-unknown-unknown target and then never uses it — the job runs cargo fmt, cargo clippy, and cargo test only. A change that compiles for the host but breaks the no_std wasm build passes CI today. Add a release wasm build, report the resulting binary size, and upload it as a workflow artifact.

Acceptance Criteria

  • Contract CI runs cargo build --target wasm32-unknown-unknown --release and fails the job on error
  • The built .wasm is uploaded as a workflow artifact for the commit
  • The job prints the wasm file size so size regressions are visible in the PR checks
  • A size ceiling is enforced (or a warning is emitted) so accidental bloat is caught early
  • The workflow name in the artifact matches the actual crate output name produced by Cargo.toml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    100 pointsTrivial difficultySorobanSoroban-specificStellar WaveIssues in the Stellar wave programciContinuous integration workflowscontractSmart contract work (Soroban)devopsonchainapps/onchain scope

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions