Improved brew caching mechanism

This commit is contained in:
Syrus 2019-01-18 11:07:03 -08:00
parent 858c1310e2
commit 63a90d0ef0

View File

@ -34,6 +34,7 @@ jobs:
- restore_cache:
keys:
- v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
- v4-cargo-cache-darwin-{{ arch }}-brew
- run:
name: Install CMAKE
command: |
@ -47,6 +48,11 @@ jobs:
name: Install libffi dependencies
command: |
brew install autoconf automake libtool
- save_cache:
paths:
- /usr/local/Homebrew
- /usr/local/Cellar
key: v4-cargo-cache-darwin-{{ arch }}-brew
- run:
name: Install Rust
command: |
@ -80,8 +86,6 @@ jobs:
- target/release/.fingerprint
- target/release/build
- target/release/deps
- /usr/local/Homebrew
- /usr/local/Cellar
key: v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
test-and-build:
@ -139,6 +143,7 @@ jobs:
- restore_cache:
keys:
- v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
- v4-cargo-cache-darwin-{{ arch }}-brew
- run:
name: Install CMAKE
command: |
@ -152,6 +157,11 @@ jobs:
name: Install libffi dependencies
command: |
brew install autoconf automake libtool
- save_cache:
paths:
- /usr/local/Homebrew
- /usr/local/Cellar
key: v4-cargo-cache-darwin-{{ arch }}-brew
- run:
name: Install Rust
command: |
@ -193,8 +203,6 @@ jobs:
- target/release/.fingerprint
- target/release/build
- target/release/deps
- /usr/local/Homebrew
- /usr/local/Cellar
key: v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
test-rust-nightly: