Skip to content

Add cargo caching to release workflows#5

Merged
thomasnemer merged 1 commit into
mainfrom
add-release-cache
Feb 21, 2026
Merged

Add cargo caching to release workflows#5
thomasnemer merged 1 commit into
mainfrom
add-release-cache

Conversation

@thomasnemer

Copy link
Copy Markdown
Contributor

Summary

  • Add actions/cache@v4 to all 5 release workflows using the same Cargo.lock hashing strategy as CI
  • Cache key includes runner.os and runner.arch to keep per-platform caches separate
  • Update CI workflow to use runner.os instead of hardcoded linux for consistency

Test plan

  • Verify CI workflow still caches correctly after the key format change
  • Trigger a release and confirm cache is populated on first run
  • Trigger a second release and confirm cache hit speeds up builds

Use the same Cargo.lock hashing strategy as CI, with runner.os and
runner.arch in the cache key to keep per-platform caches separate.
Also update CI to use runner.os instead of hardcoded "linux" for
consistency.
@thomasnemer thomasnemer merged commit 08194e1 into main Feb 21, 2026
1 check passed
@thomasnemer thomasnemer deleted the add-release-cache branch February 21, 2026 12:37
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