File tree Expand file tree Collapse file tree 3 files changed +24
-12
lines changed Expand file tree Collapse file tree 3 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,17 @@ jobs:
76
76
uses : actions/cache@v1
77
77
with :
78
78
path : ~/.cargo/registry
79
- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
80
- - name : Cache cargo index
79
+ key : ${{ runner.os }}-cargo-registry-trimmed- ${{ hashFiles('**/Cargo.lock') }}
80
+ - name : Cache cargo git trees
81
81
uses : actions/cache@v1
82
82
with :
83
83
path : ~/.cargo/git
84
- key : ${{ runner.os }}-cargo-index -${{ hashFiles('**/Cargo.lock') }}
84
+ key : ${{ runner.os }}-cargo-gits-trimmed -${{ hashFiles('**/Cargo.lock') }}
85
85
- name : Cache cargo build
86
86
uses : actions/cache@v1
87
87
with :
88
88
path : target
89
- key : ${{ runner.os }}-cargo-build-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
89
+ key : ${{ runner.os }}-cargo-build-trimmed- ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
90
90
- name : Install Rustup using ./rustup-init.sh
91
91
run : |
92
92
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
@@ -152,3 +152,7 @@ jobs:
152
152
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
153
153
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
154
154
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
155
+ - name : Clear the cargo caches
156
+ run : |
157
+ cargo install cargo-cache --no-default-features --features ci-autoclean
158
+ cargo-cache
Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ jobs:
45
45
uses : actions/cache@v1
46
46
with :
47
47
path : ~/.cargo/registry
48
- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
49
- - name : Cache cargo index
48
+ key : ${{ runner.os }}-cargo-registry-trimmed- ${{ hashFiles('**/Cargo.lock') }}
49
+ - name : Cache cargo git trees
50
50
uses : actions/cache@v1
51
51
with :
52
52
path : ~/.cargo/git
53
- key : ${{ runner.os }}-cargo-index -${{ hashFiles('**/Cargo.lock') }}
53
+ key : ${{ runner.os }}-cargo-gits-trimmed -${{ hashFiles('**/Cargo.lock') }}
54
54
- name : Cache cargo build
55
55
uses : actions/cache@v1
56
56
with :
57
57
path : target
58
- key : ${{ runner.os }}-cargo-build-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
58
+ key : ${{ runner.os }}-cargo-build-trimmed- ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
59
59
- name : Install Rustup using ./rustup-init.sh
60
60
run : |
61
61
sh ./rustup-init.sh --default-toolchain=stable --profile=minimal -y
77
77
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
78
78
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
79
79
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
80
+ - name : Clear the cargo caches
81
+ run : |
82
+ cargo install cargo-cache --no-default-features --features ci-autoclean
83
+ cargo-cache
Original file line number Diff line number Diff line change @@ -75,17 +75,17 @@ jobs:
75
75
uses : actions/cache@v1
76
76
with :
77
77
path : ~/.cargo/registry
78
- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
79
- - name : Cache cargo index
78
+ key : ${{ runner.os }}-cargo-registry-trimmed- ${{ hashFiles('**/Cargo.lock') }}
79
+ - name : Cache cargo git trees
80
80
uses : actions/cache@v1
81
81
with :
82
82
path : ~/.cargo/git
83
- key : ${{ runner.os }}-cargo-index -${{ hashFiles('**/Cargo.lock') }}
83
+ key : ${{ runner.os }}-cargo-gits-trimmed -${{ hashFiles('**/Cargo.lock') }}
84
84
- name : Cache cargo build
85
85
uses : actions/cache@v1
86
86
with :
87
87
path : target
88
- key : ${{ runner.os }}-cargo-build-static-crt-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
88
+ key : ${{ runner.os }}-cargo-build-static-crt-trimmed- ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
89
89
- name : Install Rustup using win.rustup.rs
90
90
run : |
91
91
# Disable the download progress bar which can cause perf issues
@@ -180,3 +180,7 @@ jobs:
180
180
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
181
181
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
182
182
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
183
+ - name : Clear the cargo caches
184
+ run : |
185
+ cargo install cargo-cache --no-default-features --features ci-autoclean
186
+ cargo-cache
You can’t perform that action at this time.
0 commit comments