Cache rustup toolchains on AppVeyor and Travis-CI

This commit is contained in:
Simon Sapin 2017-11-28 17:31:54 +01:00
parent a3339f97c3
commit d0b3525474
2 changed files with 4 additions and 2 deletions

View file

@ -30,8 +30,9 @@ matrix:
- bash etc/ci/lockfile_changed.sh - bash etc/ci/lockfile_changed.sh
cache: cache:
directories: directories:
- .cargo
- .servo - .servo
- $HOME/.cargo
- $HOME/.rustup
- $HOME/.ccache - $HOME/.ccache
before_cache: before_cache:
- ./mach clean-nightlies --keep 2 --force - ./mach clean-nightlies --keep 2 --force

View file

@ -37,8 +37,9 @@ branches:
- master - master
cache: cache:
- C:\Users\appveyor\.rustup -> rust-toolchain
- C:\Users\appveyor\.cargo -> rust-toolchain
- .servo -> rust-toolchain - .servo -> rust-toolchain
- .cargo -> rust-toolchain
- .ccache - .ccache
install: install: