mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Reduce cache size on travis (#532)
The Windows build fails often because it takes too long to store the build cache (timeout). This commit uses `cargo cache` to clean up the /home/philipp/.cargo directory before caching. It also removes caching of the `target` directory since it needs to be recompiled for each new nightly anyway.
This commit is contained in:
committed by
GitHub
parent
19b7fbc350
commit
b4238e93af
@@ -25,8 +25,8 @@ os:
|
|||||||
- windows
|
- windows
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
cargo: true
|
|
||||||
directories:
|
directories:
|
||||||
|
- $HOME/.cargo
|
||||||
- $HOME/Library/Caches/Homebrew
|
- $HOME/Library/Caches/Homebrew
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
@@ -45,9 +45,11 @@ before_script:
|
|||||||
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
|
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
|
||||||
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
||||||
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
||||||
|
- (test -x $HOME/.cargo/bin/cargo-cache || cargo install cargo-cache)
|
||||||
- cargo update-installed
|
- cargo update-installed
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bootimage build
|
- bootimage build
|
||||||
- cargo test
|
- cargo test
|
||||||
- bootimage test
|
- bootimage test
|
||||||
|
- cargo cache --autoclean
|
||||||
|
|||||||
Reference in New Issue
Block a user