feat: add shared cache key for autobuild workflows

This commit is contained in:
Tunglies
2025-07-25 18:36:27 +08:00
parent df5897c908
commit c8dfdb7a5a
3 changed files with 7 additions and 0 deletions

View File

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

View File

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

View File

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