From b34e4cf551395be4ebf6ca66232d9bd824959b4f Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Tue, 18 Nov 2025 15:53:04 +0800 Subject: [PATCH] Revert "fix: update Rust cache keys in autobuild and lint-clippy workflows for consistency" This reverts commit 9df0998f3ee733cb67979d55b56dc85f867bd9a0. --- .github/workflows/autobuild.yml | 12 ++++++------ .github/workflows/lint-clippy.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index c487249bf..26d98901b 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -156,10 +156,10 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 with: + workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} - shared-key: v0-rust-${{ runner.os }}-${{ matrix.target }} - key: ${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**Cargo.lock') }} - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-22.04' @@ -264,10 +264,10 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 with: + workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} - shared-key: v0-rust-${{ runner.os }}-${{ matrix.target }} - key: ${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**Cargo.lock') }} - name: Install pnpm uses: pnpm/action-setup@v4 @@ -411,10 +411,10 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 with: + workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} - shared-key: v0-rust-${{ runner.os }}-${{ matrix.target }} - key: ${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**Cargo.lock') }} - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/lint-clippy.yml b/.github/workflows/lint-clippy.yml index f29280987..251b326e5 100644 --- a/.github/workflows/lint-clippy.yml +++ b/.github/workflows/lint-clippy.yml @@ -58,10 +58,10 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 with: + workspaces: src-tauri cache-all-crates: true save-if: false - shared-key: v0-rust-${{ runner.os }}-${{ matrix.target }} - key: ${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**Cargo.lock') }} - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-22.04'