Repository navigation
ci(packaging): clean stale bundle output before building installers - #121
Merged
Merged
Conversation
The setup-rust action caches the whole target/ directory, keyed on Cargo.lock.
That cache includes target/release/bundle/, where Tauri writes version-stamped
installer filenames (FiberPath.GUI_<ver>_*.{msi,exe,dmg,deb,AppImage}). The
build never pruned that directory, so installers accumulated across release
runs, and the version-agnostic upload globs attached every accumulated version
to each new release.
Remove src-tauri/target/release/bundle before `npm run package` so only the
current build's artifacts exist when the upload step globs them. This breaks
the accumulation cycle at the source without disabling the compile cache.
Closes #120
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.
What
Stop the packaging workflow from attaching stale prior-version installers to new releases. Fixes #120.
Root cause
.github/actions/setup-rust/action.ymlcaches the wholetarget/dir (keyed onCargo.lock). That cache includestarget/release/bundle/, where Tauri writes version-stamped installer filenames. The build never pruned that directory, so installers accumulated across release runs, and the version-agnostic upload globs (bundle/msi/*.msi,bundle/nsis/*.exe, …) attached every accumulated version to each new release.This had polluted 10 of 13 releases (40 stale assets total) — cleaned up manually; this PR prevents recurrence.
Fix
Add a
Clean stale bundle outputstep that runsrm -rf src-tauri/target/release/bundlebeforenpm run package, so only the current build's artifacts exist when the upload step globs them. Minimal and root-cause: it breaks the accumulation cycle without disabling the compile cache (only the finalbundle/dir is removed; compiled deps intarget/are untouched, so build speed is preserved).Verification
gui-packaging.ymlYAML validated.Closes #120