Skip to content

perf(release): cache cargo build with Swatinem/rust-cache#4

Merged
imryao merged 1 commit into
mainfrom
feature/agentx-release-cache
May 5, 2026
Merged

perf(release): cache cargo build with Swatinem/rust-cache#4
imryao merged 1 commit into
mainfrom
feature/agentx-release-cache

Conversation

@imryao
Copy link
Copy Markdown
Member

@imryao imryao commented May 5, 2026

Summary

Adds Swatinem/rust-cache@v2.9.1 to all 3 build jobs (build-linux, build-macos, build-windows) right after dtolnay/rust-toolchain.

Cache key includes matrix.target so each (target, toolchain) pair gets its own entry.

Why

First dry-run (`agentx-v0.128.0-agentx.0`) cold-built every workspace member and took:

  • build-linux × 2: 30–35 min each
  • build-macos × 2: 75 min each (build is ~60 min, sign+notarize+dmg adds ~15 min)
  • build-windows: 60 min

Subsequent runs with this cache should drop the cold-build portion to typically 5–15 min per Linux/Windows job. macOS is bottlenecked by signing/notarization regardless.

Test plan

  • Cut a stable or iteration tag after this merges and confirm build job durations drop.

🤖 Generated with Claude Code

…che)

Adds Swatinem/rust-cache@v2.9.1 to all 3 build jobs (linux, macos,
windows) right after dtolnay/rust-toolchain. First run still cold but
subsequent runs restore the cargo registry, git deps, and target/ so
incremental builds drop from 30-75 min to typically 5-15 min per job.
Cache key includes matrix.target so each (target, toolchain) pair
gets its own cache entry.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@imryao imryao merged commit c83ae99 into main May 5, 2026
9 of 25 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.

1 participant