The ${TRAVIS_HOME}/.cargo
directory is used by Rust’s cargo to store executables installed through cargo install
. However, the cached directory does not contain the installed executables on the next run on Windows.
I verified that the correct cache file is restored:
- job 1: installs the executables, verifeis that they’re available in
${TRAVIS_HOME}/.cargo/bin
, and caches that directory in a file namedPR.535/cache-windows-1803-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--cargo-nightly.tgz
- job 2: restores
PR.535/cache-windows-1803-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--cargo-nightly.tgz
(the exact same name), but the installed executables are no longer in${TRAVIS_HOME}/.cargo/bin
.
This leads to really long build times since the executables are recompiled in each job.