From 5003fd4d38da2b801f1e2f30c3979c6afb777ba6 Mon Sep 17 00:00:00 2001 From: Reid <61492567+reidliu41@users.noreply.github.com> Date: Thu, 14 May 2026 20:02:53 +0800 Subject: [PATCH] fix(ci): avoid caching cargo binaries Disable Swatinem rust-cache binary caching so restored caches cannot replace cargo/rustup shims on hosted runners. --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/nightly.yml | 2 ++ .github/workflows/release.yml | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b324d45..3a6490b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6fe68721..b43d10d6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ec2916a..50290a25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: |