ci: add Rust toolchain and build artifact caching #43

Merged
mik-tf merged 1 commit from development into main 2026-03-02 22:37:07 +00:00
Member

Adds cargo cache to all three CI workflows to cut build time from ~25 min to ~3-5 min on warm runs.

Changes

  • Cache /tmp/rustup + /tmp/cargo/bin (toolchain) — keyed to stable+wasm32, stable across runs
  • Cache /tmp/cargo/registry, /tmp/cargo/git, target/ (build artifacts) — keyed to Cargo.lock hash
  • Skip rustup install when already cached
  • Skip dioxus-cli install when already cached (removed --force)
  • Applies to test.yml, deploy-dev.yml, deploy-production.yml

Testing

  • deploy-dev.yml passed on development with new cache steps
Adds cargo cache to all three CI workflows to cut build time from ~25 min to ~3-5 min on warm runs. ## Changes - Cache `/tmp/rustup` + `/tmp/cargo/bin` (toolchain) — keyed to stable+wasm32, stable across runs - Cache `/tmp/cargo/registry`, `/tmp/cargo/git`, `target/` (build artifacts) — keyed to `Cargo.lock` hash - Skip `rustup` install when already cached - Skip `dioxus-cli` install when already cached (removed `--force`) - Applies to `test.yml`, `deploy-dev.yml`, `deploy-production.yml` ## Testing - `deploy-dev.yml` passed on `development` with new cache steps
ci: add Rust toolchain and build artifact caching
All checks were successful
Test / check (push) Successful in 7m16s
Deploy Dev / build-and-deploy (push) Successful in 12m31s
Test / check (pull_request) Successful in 6m54s
b13d75424c
Cache /tmp/cargo/registry, /tmp/cargo/git, target/, /tmp/rustup, and
/tmp/cargo/bin across runs. Skip rustup install and dioxus-cli install
when already cached. Cuts cold→warm build time from ~25 min to ~3-5 min.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mik-tf changed title from WIP: ci: add Rust toolchain and build artifact caching to ci: add Rust toolchain and build artifact caching 2026-03-02 22:37:00 +00:00
mik-tf merged commit ed1448447c into main 2026-03-02 22:37:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mycelium/www_migrate_mycelium!43
No description provided.