Skip to content

Have TravisCI cache cargo between builds. #16

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 2 commits into from
Dec 2, 2018
Merged

Conversation

davidbarsky
Copy link
Contributor

Description of changes:

see title.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@davidbarsky davidbarsky self-assigned this Nov 30, 2018
@davidbarsky davidbarsky requested a review from sapessi November 30, 2018 04:25
@softprops
Copy link
Contributor

You may want to keep in mind some of the caveats identied of this approach listed in this post

@davidbarsky
Copy link
Contributor Author

Thanks @softprops! That motivated me to not have the the cache initially, but then I noticed Travis took ~30 minutes to run, whereas other projects I worked on (Tokio Trace, for one) took maybe 2 minutes. The only difference was the presence of cached Travis CI. I’m open to re-evaluating this choice, however!

@davidbarsky
Copy link
Contributor Author

davidbarsky commented Nov 30, 2018

Hmm, the issue seems to be related to the fact that we're building for macOS. It might make sense to skip building for macOS.

@sapessi
Copy link
Contributor

sapessi commented Dec 1, 2018

Yeah. No need to build for macos

@softprops
Copy link
Contributor

It's not about not caching but what to cache. There's some notes in the post on more focused dirs to cache.

Copy link
Contributor

@sapessi sapessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it

@davidbarsky
Copy link
Contributor Author

Thanks @softprops. I've added the caching strategy that the article recommended.

@davidbarsky davidbarsky merged commit 109a547 into master Dec 2, 2018
@davidbarsky davidbarsky deleted the cache-cargo-on-ci branch December 2, 2018 02:22
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.

3 participants