use different caching action

This commit is contained in:
Rob Ede 2020-12-27 23:29:55 +00:00
parent f1284c0668
commit 38cca5c032
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
3 changed files with 9 additions and 36 deletions

View File

@ -34,19 +34,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
- name: Cache cargo dirs
uses: actions/cache@v2
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1.0.1
with:
path:
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ matrix.version }}-linux-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ matrix.version }}-linux-build-${{ hashFiles('**/Cargo.lock') }}
key: linux
- name: check build
uses: actions-rs/cargo@v1

View File

@ -33,19 +33,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
- name: Cache cargo dirs
uses: actions/cache@v2
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1.0.1
with:
path:
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ matrix.version }}-macos-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ matrix.version }}-macos-build-${{ hashFiles('**/Cargo.lock') }}
key: macos
- name: check build
uses: actions-rs/cargo@v1

View File

@ -45,19 +45,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
- name: Cache cargo dirs
uses: actions/cache@v2
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1.0.1
with:
path:
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ matrix.version }}-win-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ matrix.version }}-win-build-${{ hashFiles('**/Cargo.lock') }}
key: windows
- name: check build
uses: actions-rs/cargo@v1