chore: prepare workspace migration and bump version to 0.47.3

This commit is contained in:
coso
2026-01-16 00:52:36 +08:00
parent f7cf0aff4c
commit 99453292a9
20 changed files with 338 additions and 37 deletions
+25 -1
View File
@@ -4,6 +4,11 @@ on:
push:
tags:
- 'v*'
paths-ignore:
- 'docs/**'
- '*.md'
- '.github/workflows/deploy-docs.yml'
- '.github/workflows/update-homebrew.yml'
workflow_dispatch:
inputs:
version:
@@ -17,7 +22,6 @@ permissions:
actions: read
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
CARGO_TERM_COLOR: always
@@ -68,6 +72,9 @@ jobs:
with:
targets: ${{ matrix.target }}
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
@@ -75,6 +82,7 @@ jobs:
shared-key: "rust-${{ matrix.target }}"
cache-on-failure: true
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
- name: Install frontend dependencies
run: pnpm install --no-frozen-lockfile
@@ -109,6 +117,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_PROFILE_RELEASE_LTO: thin
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 16
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
# Apple 签名环境变量
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
@@ -144,6 +155,19 @@ jobs:
prerelease: false
args: --target ${{ matrix.target }}
# 构建后清理,节省缓存空间
- name: Post-build cleanup
run: |
rm -rf src-tauri/target/release/deps || true
rm -rf src-tauri/target/release/build || true
rm -rf src-tauri/target/release/incremental || true
rm -rf src-tauri/target/${{ matrix.target }}/release/deps || true
rm -rf src-tauri/target/${{ matrix.target }}/release/build || true
rm -rf src-tauri/target/${{ matrix.target }}/release/incremental || true
- name: Show sccache stats
run: sccache --show-stats
# 清理 keychain
- name: Cleanup Keychain
if: matrix.platform == 'macos-latest' && always()