From 3da3cc52d98b8a3b0f2f80960f58e04ae92f0b70 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 15 Aug 2017 22:36:58 +0100 Subject: [PATCH] Add cache --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8931467..c6227e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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