Skip to content

Commit 7bf3250

Browse files
committed
chore: Update cache github actions.
1 parent 578671c commit 7bf3250

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,14 @@ jobs:
2424
if: matrix.config.kind == 'test_release'
2525
run: rustup target add wasm32-unknown-unknown
2626

27-
- name: Cache cargo registry
28-
uses: actions/cache@v1
27+
- name: Cache cargo
28+
uses: actions/cache@v2
2929
with:
30-
path: ~/.cargo/registry
31-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
32-
- name: Cache cargo index
33-
uses: actions/cache@v1
34-
with:
35-
path: ~/.cargo/git
36-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
37-
- name: Cache cargo build
38-
uses: actions/cache@v1
39-
with:
40-
path: target
41-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
30+
path: |
31+
~/.cargo/registry
32+
~/.cargo/git
33+
target
34+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4235

4336
- name: Build debug
4437
if: matrix.config.kind == 'test_debug'

.github/workflows/publish.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,14 @@ jobs:
3434
- name: Checkout
3535
uses: actions/checkout@v2
3636

37-
- name: Cache cargo registry
38-
uses: actions/cache@v1
37+
- name: Cache cargo
38+
uses: actions/cache@v2
3939
with:
40-
path: ~/.cargo/registry
41-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
42-
- name: Cache cargo index
43-
uses: actions/cache@v1
44-
with:
45-
path: ~/.cargo/git
46-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
47-
- name: Cache cargo build
48-
uses: actions/cache@v1
49-
with:
50-
path: target
51-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
40+
path: |
41+
~/.cargo/registry
42+
~/.cargo/git
43+
target
44+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5245

5346
- name: Cargo login
5447
run: cargo login ${{ secrets.CRATES_TOKEN }}

0 commit comments

Comments
 (0)