Add cache

This commit is contained in:
Jake Howard 2017-08-15 22:36:58 +01:00
parent 49d5a81642
commit 3da3cc52d9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -7,7 +7,14 @@ jobs:
working_directory: ~/md-pdf
steps:
- checkout
- restore_cache:
keys:
- cargo
- run: which rustfmt || cargo install rustfmt
- save_cache:
key: cargo
paths:
- ~/.cargo
- run: ./scripts/install-deps.sh
- run: cargo fmt -- --write-mode=diff
- run: cargo build