From d9d649f8578c616b0672d807ddbbeb09ba2d88ea Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 11 Nov 2022 20:34:06 +0100 Subject: ci: add caching of Cargo data --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index 4355f4b..eb18dd7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,12 +13,21 @@ jobs: - run: name: Setting Rust nightly as default command: rustup default nightly + - restore_cache: + name: Restore cache of Cargo data + keys: + - cargo-cache - run: name: Run tests with all features enabled command: cargo test --workspace --all-features - run: name: Run tests with only default features enabled command: cargo test --workspace + - save_cache: + name: Save cache of Cargo data + key: cargo-cache + paths: + - ~/.cargo test-stable: docker: @@ -26,12 +35,21 @@ jobs: steps: - checkout - run: cargo --version + - restore_cache: + name: Restore cache of Cargo data + keys: + - cargo-cache - run: name: Run tests with all features except factory enabled command: cargo test --workspace --features async - run: name: Run tests with only default features enabled command: cargo test --workspace + - save_cache: + name: Save cache of Cargo data + key: cargo-cache + paths: + - ~/.cargo coverage: machine: true @@ -59,9 +77,18 @@ jobs: steps: - checkout - run: cargo --version + - restore_cache: + name: Restore cache of Cargo data + keys: + - cargo-cache - run: name: Run Clippy command: cargo clippy + - save_cache: + name: Save cache of Cargo data + key: cargo-cache + paths: + - ~/.cargo code-style: docker: -- cgit v1.2.3-18-g5258