Skip to content

Commit

Permalink
Fix cargo cache in cirrus-ci
Browse files Browse the repository at this point in the history
$CARGO_HOME isn't ready early enough
  • Loading branch information
asomers authored and fabianfreyer committed Jan 3, 2019
1 parent f421c19 commit 80ceec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task:
curl https://sh.rustup.rs -sSf | sh -s -- -y
. $HOME/.cargo/env
cargo_cache:
folder: $CARGO_HOME/registry
folder: $HOME/.cargo/registry
build_script: env PATH="$HOME/.cargo/bin:$PATH" cargo build
test_script: env PATH="$HOME/.cargo/bin:$PATH" cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
before_cache_script: rm -rf $HOME/.cargo/registry/index

0 comments on commit 80ceec3

Please sign in to comment.