fix(ci): avoid caching cargo binaries

Disable Swatinem rust-cache binary caching so restored caches cannot replace cargo/rustup shims on hosted runners.
This commit is contained in:
Reid
2026-05-14 20:02:53 +08:00
committed by GitHub
parent 9483248a9f
commit 5003fd4d38
3 changed files with 14 additions and 0 deletions
+8
View File
@@ -55,6 +55,8 @@ jobs:
done
sudo apt-get install -y libdbus-1-dev pkg-config
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Check formatting
run: cargo fmt --all -- --check
# Mirror the release-workflow `parity` gate exactly. Anything that
@@ -83,6 +85,8 @@ jobs:
done
sudo apt-get install -y libdbus-1-dev pkg-config
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Run tests
run: cargo test --workspace --all-features --locked
- name: Lockfile drift guard
@@ -113,6 +117,8 @@ jobs:
with:
node-version: 20
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Build wrapper binaries
run: cargo build --release --locked -p deepseek-tui-cli -p deepseek-tui
- name: Smoke wrapper install and delegated entrypoints
@@ -136,6 +142,8 @@ jobs:
done
sudo apt-get install -y libdbus-1-dev pkg-config
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Build docs
run: cargo doc --workspace --no-deps
env:
+2
View File
@@ -71,6 +71,8 @@ jobs:
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
+4
View File
@@ -36,6 +36,8 @@ jobs:
done
sudo apt-get install -y libdbus-1-dev pkg-config
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Format check
run: cargo fmt --all -- --check
- name: Compile check
@@ -149,6 +151,8 @@ jobs:
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
cache-bin: false
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |