Skip to content

Commit 26dcbf5

Browse files
committed
Stop caching on CI
The only thing we now cache is cargo-cache, which we only use for cache. That's a catch-22 if I ever seen one. And for Clippy itself we always want to do a clean build and not cache anything.
1 parent 41cab83 commit 26dcbf5

File tree

2 files changed

+0
-55
lines changed

2 files changed

+0
-55
lines changed

.github/workflows/clippy.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ jobs:
4141
- name: Install toolchain
4242
run: rustup show active-toolchain
4343

44-
- name: Cache cargo dir
45-
uses: actions/cache@v2
46-
with:
47-
path: ~/.cargo
48-
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
49-
restore-keys: |
50-
${{ runner.os }}-x86_64-unknown-linux-gnu
51-
5244
# Run
5345
- name: Set LD_LIBRARY_PATH (Linux)
5446
run: |
@@ -88,9 +80,3 @@ jobs:
8880
cargo dev new_lint --name new_late_pass --pass late
8981
cargo check
9082
git reset --hard HEAD
91-
92-
# Cleanup
93-
- name: Run cargo-cache --autoclean
94-
run: |
95-
cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
96-
cargo cache

.github/workflows/clippy_bors.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,6 @@ jobs:
9191
- name: Install toolchain
9292
run: rustup show active-toolchain
9393

94-
- name: Cache cargo dir
95-
uses: actions/cache@v2
96-
with:
97-
path: ~/.cargo
98-
key: ${{ runner.os }}-${{ matrix.host }}-v2-${{ hashFiles('Cargo.lock') }}
99-
restore-keys: |
100-
${{ runner.os }}-${{ matrix.host }}
101-
10294
# Run
10395
- name: Set LD_LIBRARY_PATH (Linux)
10496
if: runner.os == 'Linux'
@@ -144,12 +136,6 @@ jobs:
144136
env:
145137
OS: ${{ runner.os }}
146138

147-
# Cleanup
148-
- name: Run cargo-cache --autoclean
149-
run: |
150-
cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
151-
cargo cache
152-
153139
integration_build:
154140
needs: changelog
155141
runs-on: ubuntu-latest
@@ -166,14 +152,6 @@ jobs:
166152
- name: Install toolchain
167153
run: rustup show active-toolchain
168154

169-
- name: Cache cargo dir
170-
uses: actions/cache@v2
171-
with:
172-
path: ~/.cargo
173-
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
174-
restore-keys: |
175-
${{ runner.os }}-x86_64-unknown-linux-gnu
176-
177155
# Run
178156
- name: Build Integration Test
179157
run: cargo test --test integration --features integration --no-run
@@ -193,11 +171,6 @@ jobs:
193171
name: target
194172
path: target
195173

196-
# Cleanup
197-
- name: Run cargo-cache --autoclean
198-
run: |
199-
cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
200-
cargo cache
201174
integration:
202175
needs: integration_build
203176
strategy:
@@ -237,14 +210,6 @@ jobs:
237210
- name: Install toolchain
238211
run: rustup show active-toolchain
239212

240-
- name: Cache cargo dir
241-
uses: actions/cache@v2
242-
with:
243-
path: ~/.cargo
244-
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
245-
restore-keys: |
246-
${{ runner.os }}-x86_64-unknown-linux-gnu
247-
248213
# Download
249214
- name: Download target dir
250215
uses: actions/download-artifact@v1
@@ -262,12 +227,6 @@ jobs:
262227
INTEGRATION: ${{ matrix.integration }}
263228
RUSTUP_TOOLCHAIN: master
264229

265-
# Cleanup
266-
- name: Run cargo-cache --autoclean
267-
run: |
268-
cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
269-
cargo cache
270-
271230
# These jobs doesn't actually test anything, but they're only used to tell
272231
# bors the build completed, as there is no practical way to detect when a
273232
# workflow is successful listening to webhooks only.

0 commit comments

Comments
 (0)