mirror of https://github.com/fafhrd91/actix-web
use different caching action
This commit is contained in:
parent
f1284c0668
commit
38cca5c032
|
@ -34,19 +34,10 @@ jobs:
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: generate-lockfile
|
command: generate-lockfile
|
||||||
- name: Cache cargo dirs
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v2
|
uses: Swatinem/rust-cache@v1.0.1
|
||||||
with:
|
with:
|
||||||
path:
|
key: linux
|
||||||
~/.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') }}
|
|
||||||
|
|
||||||
- name: check build
|
- name: check build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
|
|
@ -33,19 +33,10 @@ jobs:
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: generate-lockfile
|
command: generate-lockfile
|
||||||
- name: Cache cargo dirs
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v2
|
uses: Swatinem/rust-cache@v1.0.1
|
||||||
with:
|
with:
|
||||||
path:
|
key: macos
|
||||||
~/.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') }}
|
|
||||||
|
|
||||||
- name: check build
|
- name: check build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
|
|
@ -45,19 +45,10 @@ jobs:
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: generate-lockfile
|
command: generate-lockfile
|
||||||
- name: Cache cargo dirs
|
- name: Cache Dependencies
|
||||||
uses: actions/cache@v2
|
uses: Swatinem/rust-cache@v1.0.1
|
||||||
with:
|
with:
|
||||||
path:
|
key: windows
|
||||||
~/.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') }}
|
|
||||||
|
|
||||||
- name: check build
|
- name: check build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
|
Loading…
Reference in New Issue