From c8dfdb7a5a4dcf9777c348058f0b54ed6781efad Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Fri, 25 Jul 2025 18:36:27 +0800 Subject: [PATCH] feat: add shared cache key for autobuild workflows --- .github/workflows/autobuild.yml | 3 +++ .github/workflows/clippy.yml | 2 ++ .github/workflows/dev.yml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 53c0f4f0a..c3796f491 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -206,6 +206,7 @@ jobs: workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} + shared-key: autobuild-shared - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-22.04' @@ -284,6 +285,7 @@ jobs: workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} + shared-key: autobuild-shared - name: Install pnpm uses: pnpm/action-setup@v4 @@ -414,6 +416,7 @@ jobs: workspaces: src-tauri cache-all-crates: true save-if: ${{ github.ref == 'refs/heads/dev' }} + shared-key: autobuild-shared - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 64392ab3b..669b02588 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -32,6 +32,8 @@ jobs: with: workspaces: src-tauri save-if: false + cache-all-crates: false + shared-key: autobuild-shared - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-22.04' diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index dcdd30f06..573e80ba7 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -71,6 +71,8 @@ jobs: with: workspaces: src-tauri save-if: false + cache-all-crates: false + shared-key: autobuild-shared - name: Install Node if: github.event.inputs[matrix.input] == 'true'