File tree Expand file tree Collapse file tree 12 files changed +60
-96
lines changed Expand file tree Collapse file tree 12 files changed +60
-96
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ jobs:
38
38
- name : Set environment variables appropriately for the build
39
39
run : |
40
40
echo "::add-path::$HOME/.cargo/bin"
41
- - name : Cache cargo registry
41
+ - name : Cache cargo registry and git trees
42
42
uses : actions/cache@v2
43
43
with :
44
- path : ~/.cargo/registry
45
- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
46
- - name : Cache cargo index
47
- uses : actions/cache@v2
48
- with :
49
- path : ~/.cargo/git
50
- key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
44
+ path : |
45
+ ~/.cargo/registry
46
+ ~/.cargo/git
47
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
51
48
- name : Cache cargo build
52
49
uses : actions/cache@v2
53
50
with :
Original file line number Diff line number Diff line change @@ -55,16 +55,13 @@ jobs:
55
55
run : |
56
56
echo "::set-env name=SKIP_TESTS::yes"
57
57
if : matrix.run_tests == ''
58
- - name : Cache cargo registry
58
+ - name : Cache cargo registry and git trees
59
59
uses : actions/cache@v2
60
60
with :
61
- path : ~/.cargo/registry
62
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
63
- - name : Cache cargo git trees
64
- uses : actions/cache@v2
65
- with :
66
- path : ~/.cargo/git
67
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
61
+ path : |
62
+ ~/.cargo/registry
63
+ ~/.cargo/git
64
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68
65
- name : Get rustc commit hash
69
66
id : cargo-target-cache
70
67
run : |
Original file line number Diff line number Diff line change @@ -48,16 +48,13 @@ jobs:
48
48
run : |
49
49
echo "::set-env name=SKIP_TESTS::yes"
50
50
if : matrix.run_tests == ''
51
- - name : Cache cargo registry
51
+ - name : Cache cargo registry and git trees
52
52
uses : actions/cache@v2
53
53
with :
54
- path : ~/.cargo/registry
55
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
56
- - name : Cache cargo git trees
57
- uses : actions/cache@v2
58
- with :
59
- path : ~/.cargo/git
60
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
54
+ path : |
55
+ ~/.cargo/registry
56
+ ~/.cargo/git
57
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
61
58
- name : Get rustc commit hash
62
59
id : cargo-target-cache
63
60
run : |
Original file line number Diff line number Diff line change @@ -76,16 +76,13 @@ jobs:
76
76
run : |
77
77
echo "::set-env name=SKIP_TESTS::yes"
78
78
if : matrix.run_tests == ''
79
- - name : Cache cargo registry
79
+ - name : Cache cargo registry and git trees
80
80
uses : actions/cache@v2
81
81
with :
82
- path : ~/.cargo/registry
83
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
84
- - name : Cache cargo git trees
85
- uses : actions/cache@v2
86
- with :
87
- path : ~/.cargo/git
88
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
82
+ path : |
83
+ ~/.cargo/registry
84
+ ~/.cargo/git
85
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
89
86
- name : Get rustc commit hash
90
87
id : cargo-target-cache
91
88
run : |
Original file line number Diff line number Diff line change @@ -41,16 +41,13 @@ jobs:
41
41
echo "::add-path::$HOME/.cargo/bin"
42
42
echo "::set-env name=TARGET::${{matrix.target}}"
43
43
echo "::set-env name=SKIP_TESTS::"
44
- - name : Cache cargo registry
44
+ - name : Cache cargo registry and git trees
45
45
uses : actions/cache@v2
46
46
with :
47
- path : ~/.cargo/registry
48
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
49
- - name : Cache cargo git trees
50
- uses : actions/cache@v2
51
- with :
52
- path : ~/.cargo/git
53
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
47
+ path : |
48
+ ~/.cargo/registry
49
+ ~/.cargo/git
50
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
54
51
- name : Get rustc commit hash
55
52
id : cargo-target-cache
56
53
run : |
Original file line number Diff line number Diff line change @@ -63,16 +63,13 @@ jobs:
63
63
echo "::add-path::%USERPROFILE%\.cargo\bin"
64
64
echo "::set-env name=TARGET::${{matrix.target}}"
65
65
echo "::set-env name=SKIP_TESTS::"
66
- - name : Cache cargo registry
66
+ - name : Cache cargo registry and git trees
67
67
uses : actions/cache@v2
68
68
with :
69
- path : ~/.cargo/registry
70
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
71
- - name : Cache cargo git trees
72
- uses : actions/cache@v2
73
- with :
74
- path : ~/.cargo/git
75
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
69
+ path : |
70
+ ~/.cargo/registry
71
+ ~/.cargo/git
72
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
76
73
- name : Get rustc commit hash
77
74
id : cargo-target-cache
78
75
run : |
Original file line number Diff line number Diff line change @@ -60,16 +60,13 @@ jobs:
60
60
echo "::add-path::%USERPROFILE%\.cargo\bin"
61
61
echo "::set-env name=TARGET::${{matrix.target}}"
62
62
echo "::set-env name=SKIP_TESTS::"
63
- - name : Cache cargo registry
63
+ - name : Cache cargo registry and git trees
64
64
uses : actions/cache@v2
65
65
with :
66
- path : ~/.cargo/registry
67
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
68
- - name : Cache cargo git trees
69
- uses : actions/cache@v2
70
- with :
71
- path : ~/.cargo/git
72
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
66
+ path : |
67
+ ~/.cargo/registry
68
+ ~/.cargo/git
69
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
73
70
- name : Get rustc commit hash
74
71
id : cargo-target-cache
75
72
run : |
Original file line number Diff line number Diff line change @@ -63,16 +63,13 @@ jobs:
63
63
echo "::add-path::%USERPROFILE%\.cargo\bin"
64
64
echo "::set-env name=TARGET::${{matrix.target}}"
65
65
echo "::set-env name=SKIP_TESTS::"
66
- - name : Cache cargo registry
66
+ - name : Cache cargo registry and git trees
67
67
uses : actions/cache@v2
68
68
with :
69
- path : ~/.cargo/registry
70
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
71
- - name : Cache cargo git trees
72
- uses : actions/cache@v2
73
- with :
74
- path : ~/.cargo/git
75
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
69
+ path : |
70
+ ~/.cargo/registry
71
+ ~/.cargo/git
72
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
76
73
- name : Get rustc commit hash
77
74
id : cargo-target-cache
78
75
run : |
Original file line number Diff line number Diff line change @@ -38,16 +38,13 @@ jobs:
38
38
- name : Set environment variables appropriately for the build
39
39
run : |
40
40
echo "::add-path::$HOME/.cargo/bin"
41
- - name : Cache cargo registry
41
+ - name : Cache cargo registry and git trees
42
42
uses : actions/cache@v2
43
43
with :
44
- path : ~/.cargo/registry
45
- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
46
- - name : Cache cargo index
47
- uses : actions/cache@v2
48
- with :
49
- path : ~/.cargo/git
50
- key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
44
+ path : |
45
+ ~/.cargo/registry
46
+ ~/.cargo/git
47
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
51
48
- name : Cache cargo build
52
49
uses : actions/cache@v2
53
50
with :
Original file line number Diff line number Diff line change @@ -84,16 +84,13 @@ jobs:
84
84
run : |
85
85
echo "::set-env name=SKIP_TESTS::yes"
86
86
if : matrix.run_tests == ''
87
- - name : Cache cargo registry
87
+ - name : Cache cargo registry and git trees
88
88
uses : actions/cache@v2
89
89
with :
90
- path : ~/.cargo/registry
91
- key : ${{ runner.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
92
- - name : Cache cargo git trees
93
- uses : actions/cache@v2
94
- with :
95
- path : ~/.cargo/git
96
- key : ${{ runner.os }}-cargo-gits-trimmed-${{ hashFiles('**/Cargo.lock') }}
90
+ path : |
91
+ ~/.cargo/registry
92
+ ~/.cargo/git
93
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
97
94
- name : Get rustc commit hash
98
95
id : cargo-target-cache
99
96
run : |
You can’t perform that action at this time.
0 commit comments