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

add "cache: cargo" to travis config (significantly faster build times) #92

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

antiochp
Copy link
Member

I looked through the history of the travis config file and the project issues and saw nothing to indicate this has already been tried - so I'm assuming there is no obvious reason not to do this?

Enable the cargo build cache in travis config file.
This caches $HOME/.cargo and $TRAVIS_BUILD_DIR/target dirs so we can avoid having to recompile all libs each time.

https://docs.travis-ci.com/user/caching/#Rust-Cargo-cache

Before -

screen shot 2017-08-10 at 10 43 44 am

After (with cache) -

screen shot 2017-08-10 at 10 44 06 am

See travis-ci/travis-ci#4470 for some details of why this should be safe even across multiple rust versions (cache is separated by rust version and branch).

@ignopeverell ignopeverell merged commit 900c524 into mimblewimble:master Aug 11, 2017
@antiochp antiochp deleted the travis_cargo_cache branch August 21, 2017 03:40
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

2 participants