Skip to content

ci: add shared-key to Rust cache for cross-workflow reuse#18

Merged
tomatoaiu merged 1 commit intomainfrom
ci/shared-cache-key
Feb 11, 2026
Merged

ci: add shared-key to Rust cache for cross-workflow reuse#18
tomatoaiu merged 1 commit intomainfrom
ci/shared-cache-key

Conversation

@tomatoaiu
Copy link
Copy Markdown
Owner

Summary

  • build.yml と release.yml の swatinem/rust-cacheshared-key: windows-release を追加
  • リリースはタグ (v*) トリガーのため、デフォルトのブランチ名ベースのキャッシュが毎回 miss していた
  • shared-key により build (PR) と release (tag) でキャッシュを共有し、リリースビルドを高速化

Expected improvement

  • リリースビルド: ~6分 → ~2分 (キャッシュヒット時)

Test plan

  • PR マージ後の次回リリースでキャッシュヒットを確認

🤖 Generated with Claude Code

The release workflow runs on tags (v*), causing cache misses every
release since swatinem/rust-cache keys by branch name by default.
Adding shared-key: windows-release to both build and release workflows
allows them to share the same cache across branches and tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tomatoaiu tomatoaiu self-assigned this Feb 11, 2026
@tomatoaiu tomatoaiu merged commit bc3a611 into main Feb 11, 2026
1 check passed
@tomatoaiu tomatoaiu deleted the ci/shared-cache-key branch February 11, 2026 02:59
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