Revert "fix: update Rust cache keys in autobuild and lint-clippy workflows for consistency"

This reverts commit 9df0998f3e.
This commit is contained in:
Tunglies
2025-11-18 15:53:04 +08:00
parent 8339fabb17
commit b34e4cf551
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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'