Skip to content

ci: cache wasm32-unknown-unknown build target in CI pipeline #46

Description

@Icahbod

Both .github/workflows/ci.yml and .github/workflows/release-hash.yml cross-compile to wasm32-unknown-unknown, but the Swatinem/rust-cache configuration does not explicitly include the WASM target build artefacts or the soroban-sdk crate under that target. Every CI run re-builds the standard library for WASM from scratch, lengthening PR validation by minutes. Add a target-specific cache key that captures target/wasm32-unknown-unknown and the Cargo registry state for the WASM triple so subsequent runs benefit from the cache. Verify by running the workflow on a clean runner and on a warmed runner and reporting the wall-clock delta.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaignci-cd

Type

No type

Fields

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