Skip to content

Commit 88e96be

Browse files
committed
test(ci): do not restore rust cache on self-hosted runners
it is around ~4GB and dominates the run time, easier to download/compile locally per run than download it
1 parent 72df149 commit 88e96be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build-quick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
- name: Restore Rust Cache (Unix)
175175
id: rust-cache-unix
176176
uses: actions/cache/restore@v5
177-
if: contains(matrix.os, 'windows') == false
177+
if: contains(matrix.os, 'windows') == false && !contains(runner.environment, 'self-hosted')
178178
with:
179179
path: |
180180
~/.cargo/registry

.github/workflows/build-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
7979
8080
- name: Restore Rust Cache
81+
if: !contains(runner.environment, 'self-hosted')
8182
id: rust-cache
8283
uses: actions/cache/restore@v5
8384
with:

0 commit comments

Comments
 (0)