Skip to content

Commit

Permalink
Use better key for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 11, 2019
1 parent e986553 commit 1f06e90
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-lint-{{ arch }}
- v8-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-lint-{{ arch }}
- <<: *run_install_dependencies
- run:
name: Install lint deps
Expand All @@ -41,7 +41,7 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: v7-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
key: v8-lint-{{ arch }}-{{ checksum "Cargo.lock" }}

test:
docker:
Expand All @@ -51,8 +51,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-test-cargo-cache-linux-stable-{{ arch }}
- v8-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-test-cargo-cache-linux-stable-{{ arch }}
- <<: *run_install_dependencies
- run:
name: Tests
Expand All @@ -71,7 +71,7 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: v7-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
key: v8-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }}

test-macos:
macos:
Expand All @@ -80,8 +80,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-darwin-stable-{{ arch }}
- v8-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-cargo-cache-darwin-stable-{{ arch }}
- run:
name: Install crate dependencies
command: |
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- target/release/.fingerprint
- target/release/build
- target/release/deps
key: v7-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
key: v8-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }}

test-and-build:
docker:
Expand All @@ -144,8 +144,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-linux-nightly-{{ arch }}
- v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-cargo-cache-linux-nightly-{{ arch }}
- run:
name: Install dependencies
command: |
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- target/release/.fingerprint
- target/release/build
- target/release/deps
key: v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
key: v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}

test-and-build-macos:
macos:
Expand All @@ -202,8 +202,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-cargo-cache-darwin-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-darwin-nightly-{{ arch }}
- v8-cargo-cache-darwin-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-cargo-cache-darwin-nightly-{{ arch }}
- run:
name: Install crate dependencies
command: |
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
- target/release/.fingerprint
- target/release/build
- target/release/deps
key: v7-cargo-cache-darwin-nightly-{ arch }}-{{ checksum "Cargo.lock" }}
key: v8-cargo-cache-darwin-nightly-{ arch }}-{{ checksum "Cargo.lock" }}

test-rust-nightly:
docker:
Expand All @@ -276,8 +276,8 @@ jobs:
- checkout
- restore_cache:
keys:
- v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-linux-nightly-{{ arch }}
- v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v8-cargo-cache-linux-nightly-{{ arch }}
- run:
name: Install dependencies
command: |
Expand All @@ -297,7 +297,7 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}-nightly
key: v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}-nightly

publish-github-release:
docker:
Expand Down

0 comments on commit 1f06e90

Please sign in to comment.