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

Better CI caching #81

Merged
merged 2 commits into from
Sep 13, 2022
Merged

Better CI caching #81

merged 2 commits into from
Sep 13, 2022

Conversation

chshersh
Copy link
Owner

This PR caches more directories on CI. These new directories are based on the following suggestions:

The rust-cache explains some more details on why some directories should be cached and not others.

Probably in the future, we will use rust-cache directly. But for now, I believe it should be good enough to just cache extra few directories.

I've noticed that cargo spends lots of time downloading the registry and sometimes even fails with spurious network errors. I believe this caching should address this problem.

@chshersh chshersh added the CI label Sep 12, 2022
@chshersh chshersh self-assigned this Sep 12, 2022
@chshersh
Copy link
Owner Author

Wow, 22s on Ubuntu instead of 1m and cargo build now takes only 5s. I take it as a win 😅

@MitchellBerend
Copy link
Collaborator

I don't think I have a lot to add here since I don't have ci experience with rust beyond running tests. The speed up definitely seems nice though!

@chshersh chshersh merged commit 56168b1 into main Sep 13, 2022
@chshersh chshersh deleted the chshersh/better-cache branch September 13, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants