Skip to content

CI: use rust-cache action for faster CI #1319

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

Merged
merged 1 commit into from
Apr 4, 2021
Merged

Conversation

syphar
Copy link
Member

@syphar syphar commented Mar 14, 2021

rust-cache caches most of the directories we cached previously, while
additionally deleting files that we don't need in the cache (about the files being cached, see here and here)

Since the action already removes old files from the cache, we don't need
cargo-sweep any more. Slight difference is (to my understanding) that sweep is based on timestamping before and after the build, and this action just deletes files with mtime > 7 days.

improvements:

  • ~2 minutes for installing cargo sweep are removed
  • cache size is cut in half (from 1 gb to ~500MB)
  • due to the smaller cache size, restoring the cache goes down from 60-90 seconds to ~30 seconds

If I'm wrong with the assumption that we can remove cargo-sweep I'm happy to add it back, with the difference of the cache being used.

rust-cache caches most of the directories we cached previously, while
additionally deleting files that we don't need in the cache.

Since the action already removes old files from the cache, we don't need
cargo-sweep any more.
@jyn514
Copy link
Member

jyn514 commented Mar 20, 2021

This looks good to me. @Kixiron do you have opinions?

@jyn514 jyn514 merged commit 79ecb67 into rust-lang:master Apr 4, 2021
@syphar syphar deleted the faster-ci branch April 4, 2021 13:38
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