Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

This PR adds the Swatinem/rust-cache action to the remaining workflows that were missing it.

Changes

  • Added caching to workflow to speed up crate publishing
  • Added caching to workflow to speed up license/security checks

Why Swatinem/rust-cache?

As discussed, Swatinem/rust-cache is better than manual caching because it:

  • Knows exactly what Rust artifacts to cache
  • Automatically excludes problematic build outputs
  • Cleans up unused dependencies automatically
  • Uses more intelligent cache keys (includes rustc version, target triple, etc.)
  • Is workspace-aware and handles shared dependencies correctly

Impact

This should speed up:

  • Publishing crates to crates.io after releases
  • License and security checks in cargo-deny workflow

The CI workflow already uses Swatinem/rust-cache, so this brings consistency across all workflows.

- Add caching to publish-crates workflow to speed up publishing
- Add caching to cargo-deny workflow to speed up security checks
- Both workflows now use the same intelligent Rust caching as CI
@joshrotenberg joshrotenberg merged commit 25e8d0e into main Sep 12, 2025
17 checks passed
@joshrotenberg joshrotenberg deleted the fix/use-swatinem-rust-cache branch September 12, 2025 21:28
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.

2 participants