新增rust编译缓存和ts构建缓存

This commit is contained in:
YHH
2025-10-16 20:54:33 +08:00
parent 92c56c439b
commit 9f16debd75

View File

@@ -44,6 +44,12 @@ jobs:
with:
targets: ${{ matrix.target }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: packages/editor-app/src-tauri
cache-on-failure: true
- name: Install dependencies (Ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: |
@@ -53,6 +59,16 @@ jobs:
- name: Install frontend dependencies
run: npm ci
- name: Cache TypeScript build
uses: actions/cache@v4
with:
path: |
packages/core/bin
packages/editor-core/dist
key: ${{ runner.os }}-ts-build-${{ hashFiles('packages/core/src/**', 'packages/editor-core/src/**') }}
restore-keys: |
${{ runner.os }}-ts-build-
- name: Build core package
run: npm run build:core