Skip to content

Commit f436151

Browse files
committed
ci: remove sccache, keep only Swatinem/rust-cache
Simplify caching strategy by removing sccache from all workflows. Swatinem/rust-cache@v2 provides sufficient caching for dependencies. Removed from ci.yml (test, benchmark, release jobs): - sccache setup and configuration steps - RUSTC_WRAPPER and SCCACHE_GHA_ENABLED env vars Removed from release.yml (build job): - sccache setup and configuration steps
1 parent ed39814 commit f436151

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ jobs:
104104
with:
105105
toolchain: ${{ matrix.rust }}
106106

107-
# Setup sccache for faster compilation
108-
- name: Setup sccache
109-
uses: mozilla-actions/[email protected]
110-
111-
- name: Configure sccache
112-
shell: bash
113-
run: |
114-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
115-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
116-
117107
- name: Cache Cargo
118108
uses: Swatinem/rust-cache@v2
119109
with:
@@ -134,9 +124,6 @@ jobs:
134124
- name: Run doctests
135125
run: cargo test --doc --all-features --workspace
136126

137-
- name: sccache stats
138-
run: sccache --show-stats
139-
140127
# Code coverage (Linux only for speed)
141128
coverage:
142129
name: Code Coverage
@@ -228,14 +215,6 @@ jobs:
228215
- name: Install Rust
229216
uses: dtolnay/rust-toolchain@stable
230217

231-
- name: Setup sccache
232-
uses: mozilla-actions/[email protected]
233-
234-
- name: Configure sccache
235-
run: |
236-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
237-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
238-
239218
- name: Cache Cargo
240219
uses: Swatinem/rust-cache@v2
241220
with:
@@ -244,9 +223,6 @@ jobs:
244223
- name: Build benchmarks (no run)
245224
run: cargo bench --no-run --profile bench-fast --workspace
246225

247-
- name: sccache stats
248-
run: sccache --show-stats
249-
250226
# Release build check
251227
release:
252228
name: Release Build
@@ -261,14 +237,6 @@ jobs:
261237
- name: Install Rust
262238
uses: dtolnay/rust-toolchain@stable
263239

264-
- name: Setup sccache
265-
uses: mozilla-actions/[email protected]
266-
267-
- name: Configure sccache
268-
run: |
269-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
270-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
271-
272240
- name: Cache Cargo
273241
uses: Swatinem/rust-cache@v2
274242
with:
@@ -285,9 +253,6 @@ jobs:
285253
echo "Target directory size:"
286254
du -sh target/release/
287255
288-
- name: sccache stats
289-
run: sccache --show-stats
290-
291256
# All checks passed
292257
ci-success:
293258
name: CI Success

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ jobs:
6060
sudo apt-get update
6161
sudo apt-get install -y gcc-aarch64-linux-gnu
6262
63-
- name: Setup sccache
64-
uses: mozilla-actions/[email protected]
65-
66-
- name: Configure sccache
67-
shell: bash
68-
run: |
69-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
70-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
71-
7263
- name: Cache Cargo
7364
uses: Swatinem/rust-cache@v2
7465
with:

0 commit comments

Comments
 (0)