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
Description
The contracts CI job runs
cargo testbut never builds the WASM artifact. The deployable binary could fail to compile while CI passes green.What Needs to Happen
wasm32-unknown-unknownto Rust toolchain stepcargo build --target wasm32-unknown-unknown --releasestellar-cliand runstellar contract optimizeon the outputFiles
.github/workflows/(contracts job)Acceptance Criteria