新增rust编译缓存和ts构建缓存
This commit is contained in:
16
.github/workflows/release-editor.yml
vendored
16
.github/workflows/release-editor.yml
vendored
@@ -44,6 +44,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
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)
|
- name: Install dependencies (Ubuntu)
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
@@ -53,6 +59,16 @@ jobs:
|
|||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: npm ci
|
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
|
- name: Build core package
|
||||||
run: npm run build:core
|
run: npm run build:core
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user