Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include CPU arch in the cache key for arm64 Linux runners #228

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Feb 7, 2025

GitHub announced Linux arm64 hosted runners.

Now GitHub Actions supports both x86_64 and arm64 for Linux. However rust-cache action doesn't include the CPU arch in the cache key. For example:

v0-rust-unit-test-Linux-ec67c29d-227d31a8

This PR includes CPU arch in the generated cache key so that it can ensure different caches are created on different CPU architectures and they are not mixed up.

@rhysd rhysd changed the title Include CPU arch in the cache key Include CPU arch in the cache key for arm64 Linux runners Feb 7, 2025
@Swatinem Swatinem merged commit 27b8ea9 into Swatinem:master Feb 8, 2025
22 checks passed
@edmorley
Copy link
Contributor

I don't suppose you could release a new rust-cache version with this fix? :-)

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.

None yet

3 participants