Use better key for caching

This commit is contained in:
Syrus 2019-04-11 11:51:28 -07:00
parent e986553d8b
commit 1f06e90729

View File

@ -21,8 +21,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-lint-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-lint-{{ arch }} - v8-lint-{{ arch }}
- <<: *run_install_dependencies - <<: *run_install_dependencies
- run: - run:
name: Install lint deps name: Install lint deps
@ -41,7 +41,7 @@ jobs:
- target/debug/.fingerprint - target/debug/.fingerprint
- target/debug/build - target/debug/build
- target/debug/deps - target/debug/deps
key: v7-lint-{{ arch }}-{{ checksum "Cargo.lock" }} key: v8-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
test: test:
docker: docker:
@ -51,8 +51,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-test-cargo-cache-linux-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-test-cargo-cache-linux-stable-{{ arch }} - v8-test-cargo-cache-linux-stable-{{ arch }}
- <<: *run_install_dependencies - <<: *run_install_dependencies
- run: - run:
name: Tests name: Tests
@ -71,7 +71,7 @@ jobs:
- target/debug/.fingerprint - target/debug/.fingerprint
- target/debug/build - target/debug/build
- target/debug/deps - 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: test-macos:
macos: macos:
@ -80,8 +80,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-cargo-cache-darwin-stable-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-darwin-stable-{{ arch }} - v8-cargo-cache-darwin-stable-{{ arch }}
- run: - run:
name: Install crate dependencies name: Install crate dependencies
command: | command: |
@ -135,7 +135,7 @@ jobs:
- target/release/.fingerprint - target/release/.fingerprint
- target/release/build - target/release/build
- target/release/deps - 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: test-and-build:
docker: docker:
@ -144,8 +144,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-linux-nightly-{{ arch }} - v8-cargo-cache-linux-nightly-{{ arch }}
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
@ -193,7 +193,7 @@ jobs:
- target/release/.fingerprint - target/release/.fingerprint
- target/release/build - target/release/build
- target/release/deps - 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: test-and-build-macos:
macos: macos:
@ -202,8 +202,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-cargo-cache-darwin-nightly-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-cargo-cache-darwin-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-darwin-nightly-{{ arch }} - v8-cargo-cache-darwin-nightly-{{ arch }}
- run: - run:
name: Install crate dependencies name: Install crate dependencies
command: | command: |
@ -267,7 +267,7 @@ jobs:
- target/release/.fingerprint - target/release/.fingerprint
- target/release/build - target/release/build
- target/release/deps - 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: test-rust-nightly:
docker: docker:
@ -276,8 +276,8 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- v7-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }} - v8-cargo-cache-linux-nightly-{{ arch }}-{{ checksum "Cargo.lock" }}
- v7-cargo-cache-linux-nightly-{{ arch }} - v8-cargo-cache-linux-nightly-{{ arch }}
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
@ -297,7 +297,7 @@ jobs:
- target/debug/.fingerprint - target/debug/.fingerprint
- target/debug/build - target/debug/build
- target/debug/deps - 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: publish-github-release:
docker: docker: