Skip to content

feat(ci): add contract WASM size check to CI pipeline#938

Merged
Xoulomon merged 1 commit into
Xoulomon:mainfrom
marvs8:feat/contract-size-ci-check
May 30, 2026
Merged

feat(ci): add contract WASM size check to CI pipeline#938
Xoulomon merged 1 commit into
Xoulomon:mainfrom
marvs8:feat/contract-size-ci-check

Conversation

@marvs8
Copy link
Copy Markdown
Contributor

@marvs8 marvs8 commented May 30, 2026

Summary

Adds a contract size check step to contract-ci.yml that enforces the Soroban 64KB WASM limit.

Changes

  • Runs wc -c on stellar_save.wasm after the build step
  • Fails the workflow if size exceeds 60KB (4KB buffer below the 64KB Soroban limit)
  • Posts a size report table as a PR comment for tracking over time

Example PR comment

Size 45123 bytes
Limit 61440 bytes (60 KB)
Usage 73.4%
Status ✅ Within limit

Closes #855

- Run wc -c on stellar_save.wasm after build
- Fail if size exceeds 60KB (4KB buffer below 64KB limit)
- Post size report as PR comment for tracking

Closes Xoulomon#855
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@marvs8 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Xoulomon Xoulomon merged commit 33a943e into Xoulomon:main May 30, 2026
13 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DevOps] Add contract size check to CI pipeline

2 participants