Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

fix(ci): preserve all serialized platform builds

hairyf31e06cde341d
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml
index 55085e8f..d2ca7dd3 100644
--- a/.github/workflows/build-linux.yml
+++ b/.github/workflows/build-linux.yml
@@ -36,10 +36,6 @@ jobs:
# 22.04 的 glibc/WebKitGTK 产物兼容 Ubuntu 22.04 及更新版本。
runs-on: ubuntu-22.04
timeout-minutes: 60
- # 三个平台共享同一 Release 和 latest.json,必须避免 tauri-action 并发写入。
- concurrency:
- group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}
- cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v7
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml
index 948f42be..8fc8fe8f 100644
--- a/.github/workflows/build-macos.yml
+++ b/.github/workflows/build-macos.yml
@@ -49,6 +49,8 @@ jobs:
name: Build (${{ matrix.id }})
strategy:
fail-fast: false
+ # 两个架构会更新同一 Release 和 latest.json,必须串行发布。
+ max-parallel: 1
matrix:
include:
- id: macos-aarch64
@@ -59,10 +61,6 @@ jobs:
rust-target: x86_64-apple-darwin
runs-on: macos-latest
timeout-minutes: 60
- # matrix 架构及其他平台共享同一 Release 和 latest.json,串行执行写入步骤。
- concurrency:
- group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}
- cancel-in-progress: false
steps:
- name: Filter target architecture
id: check
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml
index 3e974bd3..f2d19313 100644
--- a/.github/workflows/build-windows.yml
+++ b/.github/workflows/build-windows.yml
@@ -35,10 +35,6 @@ jobs:
name: Build (windows)
runs-on: windows-latest
timeout-minutes: 60
- # 三个平台共享同一 Release 和 latest.json,必须避免 tauri-action 并发写入。
- concurrency:
- group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}
- cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 87d497d2..38b4c443 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -169,9 +169,12 @@ jobs:
publish-windows:
name: Build Windows Artifacts
- needs: prepare
+ needs: [prepare, publish-macos]
+ # 平台串行发布,避免 tauri-action 并发更新同一 Release/latest.json;
+ # always() 允许手动只选 Windows 时跨过 skipped 的 macOS job。
if: >-
- needs.prepare.result == 'success' &&
+ always() && needs.prepare.result == 'success' &&
+ (needs.publish-macos.result == 'success' || needs.publish-macos.result == 'skipped') &&
(github.event_name != 'workflow_dispatch' ||
inputs.platform_filter == 'all' ||
inputs.platform_filter == 'windows')
@@ -188,9 +191,10 @@ jobs:
publish-linux:
name: Build Linux Artifacts
- needs: prepare
+ needs: [prepare, publish-windows]
if: >-
- needs.prepare.result == 'success' &&
+ always() && needs.prepare.result == 'success' &&
+ (needs.publish-windows.result == 'success' || needs.publish-windows.result == 'skipped') &&
(github.event_name != 'workflow_dispatch' ||
inputs.platform_filter == 'all' ||
inputs.platform_filter == 'linux')