mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
perf: 移除未使用的 goose 依赖,优化 Windows CI 构建速度
- 移除 goose git 依赖(从 main 分支拉取,每次都要编译大量代码) - 删除 goose_agent.rs 和 goose_agent_cmd.rs(未被实际使用) - 删除 aster_client_tests.rs(goose 相关测试) - 更新 agent/mod.rs 和 lib.rs 移除相关引用 - 优化 release.yml CI 配置: - cache-all-crates: true - CARGO_PROFILE_RELEASE_LTO: thin - CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 16 预计可显著减少 Windows 构建时间(从 ~38 分钟)
This commit is contained in:
@@ -14,6 +14,12 @@ on:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
@@ -60,8 +66,9 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: src-tauri
|
||||
shared-key: "rust-cache-${{ matrix.target }}"
|
||||
shared-key: "rust-${{ matrix.target }}"
|
||||
cache-on-failure: true
|
||||
cache-all-crates: true
|
||||
|
||||
- name: Install frontend dependencies
|
||||
run: npm ci
|
||||
@@ -70,6 +77,8 @@ jobs:
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CARGO_PROFILE_RELEASE_LTO: thin
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 16
|
||||
with:
|
||||
tagName: ${{ github.event.inputs.version || github.ref_name }}
|
||||
releaseName: 'ProxyCast ${{ github.event.inputs.version || github.ref_name }}'
|
||||
|
||||
Reference in New Issue
Block a user