Add cache
This commit is contained in:
parent
49d5a81642
commit
3da3cc52d9
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue