Repository navigation
Desktop release: build the three platform legs in parallel - #8191
Merged
Merged
Conversation
This was referenced Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
max-parallel: 1from thebuildmatrix inrelease-desktop.yml, so the macOS, Linux and Windows legs build concurrently instead of one after another.Why it was serial, and why that no longer applies
max-parallel: 1arrived with the original Tauri PR (#5144, commit a5eb2e3). At that point all three legs each invokedtauri-apps/tauri-actionwithtagName,releaseNameandreleaseDraft, so every leg independently ran find-or-create-release against the same tag. Run them concurrently and more than one leg creates the release, then artifacts scatter across the duplicates. That is tauri-action#914, still open. Serializing the legs was a correct fix for the workflow as it stood, and it explains the intermittent one-in-three failures seen back then.That structure is gone. The legs now call
tauri-actionwith notagName, noreleaseNameand noreleaseDraft; they only build and thenupload-artifactunder per-platform names (desktop-release-macos-aarch64,-linux-x64,-windows-x64). Every release mutation happens exactly once, in the separatepublish-releasejob. Grepping the wholebuildjob body forgit push,git tag,gh apior anyGITHUB_TOKENuse returns nothing, so the legs share no state at all. This is the "decouple build from upload" remedy that tauri-action#914 recommends, and it is strictly stronger than pre-creating the release and passingreleaseId, because our legs never touch the release API.For comparison, janhq/jan builds all three platforms fully in parallel (
build-macos,build-windows-x64,build-linux-x64all declare the sameneeds), with no retry wrappers anywhere. Their legs still write to the release API concurrently, guarded only by a pre-created draft release. Ours do not even do that.What this fixes
Under
max-parallel: 1a leg only requests a runner once the previous leg ends, so each leg re-enters its pool's queue mid-release. On the in-flightv0.1.526-betarelease all three legs were created at 15:57:51, but Windows sat withrunner_name=nullwhile macOS ran and Linux only started at 16:06:40. With a busy queue that requeue can cost far more than the 28 seconds it happened to cost there.Wall clock for a release drops to roughly the slowest single leg. Runner minutes are unchanged. The legs use three different runner pools, so they do not compete with each other.
This also removes the hazard the workflow itself documented at the notarize step, where a stuck Notary service could burn the job budget and take the Linux and Windows builds down with it. That comment is updated here since the reasoning no longer holds.
Notes
fail-fast: falseis unchanged, so one failing leg still lets the other two finish, and GitHub's "Re-run failed jobs" re-runs only that leg pluspublish-release. That is retry on demand without paying for it on every release.max-parallel. Everything else in the diff is comments.Test plan
publish-releasestill collects all artifacts