-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cache cargo binaries #4659
Cache cargo binaries #4659
Conversation
f23309a
to
2b4e9ae
Compare
This should cut build time in half. |
Hm, cannot install master toolchain on osx. Investigating! |
Reported upstream: kennytm/rustup-toolchain-install-master#28 |
I also tried this once. But the caches this builds are >500MB big. I'm not sure if this is a trade-off we want to / can take. |
☔ The latest upstream changes (presumably #4663) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #4668) made this pull request unmergeable. Please resolve the merge conflicts. |
b3f0fa6
to
49fabde
Compare
* do not force to install rustfmt * use cargo-cache * disable bash trace * clone single branch
@bors try |
Cache cargo binaries changelog: none
So, we should be able to easily test this: The first try run is using an empty cache, because there's no cache for the
(https://travis-ci.com/rust-lang/rust-clippy/jobs/246547175#L71) The second try run should be faster then |
☀️ Try build successful - checks-travis, status-appveyor |
Full cache upload took 15-20 seconds in the various jobs. @bors try |
Cache cargo binaries changelog: none
The cache download seems to take less than 10 seconds in every case. Less than 5 in most cases. Let's see the total time savings ⏳ |
☀️ Try build successful - checks-travis, status-appveyor |
The second try run was ~5 minutes faster. Not sure if that's within the normal variance. Let's @bors try |
Cache cargo binaries changelog: none
☀️ Try build successful - checks-travis, status-appveyor |
So the build time for the base tests is about 5~7 minutes faster, which is about 18~25%. I don't think that this will make much of a difference on Sadly it doesn't display the The total time is about 35~37% faster though. |
Let's get this merged, it's a good improvement in any case! @bors r+ |
📌 Commit d81191e has been approved by |
Cache cargo binaries changelog: none
☀️ Test successful - checks-travis, status-appveyor |
changelog: none