Skip to content

Commit 9a4ec54

Browse files
authored
Merge pull request #2346 from imbsky/actions-cache-v2
Bump actions/cache from v1 to v2
2 parents af0f918 + 9d6d8a4 commit 9a4ec54

12 files changed

+36
-36
lines changed

.github/workflows/centos-fmt-clippy-on-all.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
run: |
4040
echo "::add-path::$HOME/.cargo/bin"
4141
- name: Cache cargo registry
42-
uses: actions/cache@v1
42+
uses: actions/cache@v2
4343
with:
4444
path: ~/.cargo/registry
4545
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
4646
- name: Cache cargo index
47-
uses: actions/cache@v1
47+
uses: actions/cache@v2
4848
with:
4949
path: ~/.cargo/git
5050
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
5151
- name: Cache cargo build
52-
uses: actions/cache@v1
52+
uses: actions/cache@v2
5353
with:
5454
path: target
5555
key: ${{ runner.os }}-cargo-build-clippy-beta-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/linux-builds-on-master.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ jobs:
5656
echo "::set-env name=SKIP_TESTS::yes"
5757
if: matrix.run_tests == ''
5858
- name: Cache cargo registry
59-
uses: actions/cache@v1
59+
uses: actions/cache@v2
6060
with:
6161
path: ~/.cargo/registry
6262
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
6363
- name: Cache cargo git trees
64-
uses: actions/cache@v1
64+
uses: actions/cache@v2
6565
with:
6666
path: ~/.cargo/git
6767
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -71,7 +71,7 @@ jobs:
7171
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
7272
shell: bash
7373
- name: Cache cargo build
74-
uses: actions/cache@v1
74+
uses: actions/cache@v2
7575
with:
7676
path: target
7777
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/linux-builds-on-pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
echo "::set-env name=SKIP_TESTS::yes"
5050
if: matrix.run_tests == ''
5151
- name: Cache cargo registry
52-
uses: actions/cache@v1
52+
uses: actions/cache@v2
5353
with:
5454
path: ~/.cargo/registry
5555
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
5656
- name: Cache cargo git trees
57-
uses: actions/cache@v1
57+
uses: actions/cache@v2
5858
with:
5959
path: ~/.cargo/git
6060
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -64,7 +64,7 @@ jobs:
6464
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
6565
shell: bash
6666
- name: Cache cargo build
67-
uses: actions/cache@v1
67+
uses: actions/cache@v2
6868
with:
6969
path: target
7070
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/linux-builds-on-stable.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
echo "::set-env name=SKIP_TESTS::yes"
7777
if: matrix.run_tests == ''
7878
- name: Cache cargo registry
79-
uses: actions/cache@v1
79+
uses: actions/cache@v2
8080
with:
8181
path: ~/.cargo/registry
8282
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
8383
- name: Cache cargo git trees
84-
uses: actions/cache@v1
84+
uses: actions/cache@v2
8585
with:
8686
path: ~/.cargo/git
8787
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -91,7 +91,7 @@ jobs:
9191
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
9292
shell: bash
9393
- name: Cache cargo build
94-
uses: actions/cache@v1
94+
uses: actions/cache@v2
9595
with:
9696
path: target
9797
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/macos-builds-on-all.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
echo "::set-env name=TARGET::${{matrix.target}}"
4343
echo "::set-env name=SKIP_TESTS::"
4444
- name: Cache cargo registry
45-
uses: actions/cache@v1
45+
uses: actions/cache@v2
4646
with:
4747
path: ~/.cargo/registry
4848
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
4949
- name: Cache cargo git trees
50-
uses: actions/cache@v1
50+
uses: actions/cache@v2
5151
with:
5252
path: ~/.cargo/git
5353
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -57,7 +57,7 @@ jobs:
5757
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
5858
shell: bash
5959
- name: Cache cargo build
60-
uses: actions/cache@v1
60+
uses: actions/cache@v2
6161
with:
6262
path: target
6363
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/windows-builds-on-master.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
echo "::set-env name=TARGET::${{matrix.target}}"
6565
echo "::set-env name=SKIP_TESTS::"
6666
- name: Cache cargo registry
67-
uses: actions/cache@v1
67+
uses: actions/cache@v2
6868
with:
6969
path: ~/.cargo/registry
7070
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
7171
- name: Cache cargo git trees
72-
uses: actions/cache@v1
72+
uses: actions/cache@v2
7373
with:
7474
path: ~/.cargo/git
7575
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -79,7 +79,7 @@ jobs:
7979
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
8080
shell: bash
8181
- name: Cache cargo build
82-
uses: actions/cache@v1
82+
uses: actions/cache@v2
8383
with:
8484
path: target
8585
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/windows-builds-on-pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ jobs:
6161
echo "::set-env name=TARGET::${{matrix.target}}"
6262
echo "::set-env name=SKIP_TESTS::"
6363
- name: Cache cargo registry
64-
uses: actions/cache@v1
64+
uses: actions/cache@v2
6565
with:
6666
path: ~/.cargo/registry
6767
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
6868
- name: Cache cargo git trees
69-
uses: actions/cache@v1
69+
uses: actions/cache@v2
7070
with:
7171
path: ~/.cargo/git
7272
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -76,7 +76,7 @@ jobs:
7676
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
7777
shell: bash
7878
- name: Cache cargo build
79-
uses: actions/cache@v1
79+
uses: actions/cache@v2
8080
with:
8181
path: target
8282
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

.github/workflows/windows-builds-on-stable.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
echo "::set-env name=TARGET::${{matrix.target}}"
6565
echo "::set-env name=SKIP_TESTS::"
6666
- name: Cache cargo registry
67-
uses: actions/cache@v1
67+
uses: actions/cache@v2
6868
with:
6969
path: ~/.cargo/registry
7070
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
7171
- name: Cache cargo git trees
72-
uses: actions/cache@v1
72+
uses: actions/cache@v2
7373
with:
7474
path: ~/.cargo/git
7575
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -79,7 +79,7 @@ jobs:
7979
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
8080
shell: bash
8181
- name: Cache cargo build
82-
uses: actions/cache@v1
82+
uses: actions/cache@v2
8383
with:
8484
path: target
8585
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

ci/actions-templates/centos-fmt-clippy-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
run: |
4040
echo "::add-path::$HOME/.cargo/bin"
4141
- name: Cache cargo registry
42-
uses: actions/cache@v1
42+
uses: actions/cache@v2
4343
with:
4444
path: ~/.cargo/registry
4545
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
4646
- name: Cache cargo index
47-
uses: actions/cache@v1
47+
uses: actions/cache@v2
4848
with:
4949
path: ~/.cargo/git
5050
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
5151
- name: Cache cargo build
52-
uses: actions/cache@v1
52+
uses: actions/cache@v2
5353
with:
5454
path: target
5555
key: ${{ runner.os }}-cargo-build-clippy-beta-${{ hashFiles('**/Cargo.lock') }}

ci/actions-templates/linux-builds-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ jobs:
8484
echo "::set-env name=SKIP_TESTS::yes"
8585
if: matrix.run_tests == ''
8686
- name: Cache cargo registry
87-
uses: actions/cache@v1
87+
uses: actions/cache@v2
8888
with:
8989
path: ~/.cargo/registry
9090
key: ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
9191
- name: Cache cargo git trees
92-
uses: actions/cache@v1
92+
uses: actions/cache@v2
9393
with:
9494
path: ~/.cargo/git
9595
key: ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
@@ -99,7 +99,7 @@ jobs:
9999
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
100100
shell: bash
101101
- name: Cache cargo build
102-
uses: actions/cache@v1
102+
uses: actions/cache@v2
103103
with:
104104
path: target
105105
key: ${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}

0 commit comments

Comments
 (0)