Skip to content

Release packaging attaches stale prior-version installers to new releases #120

Closed

Description

@CameronBrooks11

What

The Release / gui-packaging.yml workflow attaches stale prior-version installers to each new GitHub Release. The v0.7.2 release was published with 10 extra Windows installers (FiberPath.GUI_0.5.4/0.6.1/0.6.2/0.7.0/0.7.1 .exe + .msi) alongside the correct 0.7.2 set. (Cleaned manually post-release; prior releases likely have the same clutter.)

Why (root cause)

  1. .github/actions/setup-rust/action.yml caches the whole target/ directory:
    uses: actions/cache@v5
    with:
      path: ${{ inputs.working-directory }}/target
      key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
    The key is keyed on Cargo.lock, so the cache (including target/release/bundle/) is restored across release runs whenever the lockfile is unchanged.
  2. Tauri writes version-stamped installer filenames into target/release/bundle/{msi,nsis}/ and the build (npm run package) does not clean that directory first, so old installers accumulate in the restored cache.
  3. The upload step uses version-agnostic globs:
    files: |
      .../bundle/nsis/*.exe
      .../bundle/msi/*.msi
      ...
    so softprops/action-gh-release attaches every accumulated installer, not just the current version.

(Windows .exe/.msi were the visible case on v0.7.2; .dmg/.deb/.AppImage can accumulate the same way depending on cache retention.)

Where

  • .github/actions/setup-rust/action.yml:21-28 (caches target/)
  • .github/workflows/gui-packaging.yml:236-242 (version-agnostic upload globs)
  • .github/workflows/gui-packaging.yml "Build Tauri bundles" step (no bundle-dir clean before build)

Fix options (pick one or combine)

  • Clean src-tauri/target/release/bundle/ before npm run package (simplest, deterministic).
  • Exclude target/**/bundle from the cached paths (cache deps, not final artifacts).
  • Make the upload globs version-specific, e.g. *_${VERSION}_* driven by release_tag.

Acceptance criteria

  • A fresh release attaches only the current version's installers (5 assets) + SBOMs.
  • No prior-version .exe/.msi/.dmg/.deb/.AppImage appear on a new release.
  • Verified on the next release cut (or a dry-run of the packaging workflow).

Activity

  1. added
    tauri
    ci
    on Jun 24, 2026
  2. added a commit that references this issue on Jun 24, 2026
    2293e18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    citauri

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions