Menu

#513 fix(ci): a pre-main merge produces a downloadable macOS Silicon staging build

closed
nobody
None
2026-07-21
2026-07-21
Anonymous
No

Originally created by: adityaharishch

Merging to pre-main was supposed to cut a downloadable staging build. It wasn't: release-prepare created an empty draft release and no build ran. Three distinct failures, all fixed here.

1. The build never fired (token recursion guard)

semantic-release pushed the version tag with the checkout's default GITHUB_TOKEN. GitHub does not re-trigger workflows for refs pushed with GITHUB_TOKEN, so release-build.yml (whose only trigger is push: tags: v*-staging* - it lives only on pre-main, unreachable by dispatch/workflow_run) never woke. Fix: persist GH_TOKEN (org PAT) as the checkout credential so the tag push is user-attributed and fires the build.

2. The build didn't compile (tauri/custom-protocol)

The compile step's single-invocation trick (-- -p meridian --bin meridian) collided with the --features tauri/custom-protocol Tauri injects - cargo applied it to the daemon scope, which has no tauri dep. Every platform died with the package 'meridian' does not contain this feature. Fix: two cargo invocations (daemon, then tray).

3. Even fixed, it couldn't publish (all-3-platforms gate)

Publish hard-required darwin-x86_64 + windows-x86_64. Made staging Apple-Silicon-only - same call as CI: dropped the x86_64 matrix leg and the Windows job; relaxed the publish completeness check and compose-updater-manifest.py REQUIRED to darwin-aarch64. One-line restorable.

Result

Merging this to pre-main runs the fixed release-prepare (PAT tag push) → fires the fixed release-build → produces the signed/notarized macOS Apple Silicon DMG, published to the staging release + updater-staging channel, automatically on this and every future merge.

Related

Tickets: #528

Discussion

  • Anonymous

    Anonymous - 2026-07-21

    Originally posted by: coderabbitai[bot]

    [!IMPORTANT]

    Review skipped

    Auto reviews are disabled on base/target branches other than the default branch.

    Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.


    ⚙️ Run configuration

    Configuration used: Organization UI

    Review profile: ASSERTIVE

    Plan: Pro Plus

    Run ID: 11935d13-810b-453c-ba35-c03f8fb3f1cc

    You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

    Use the checkbox below for a quick retry:
    - [ ] 🔍 Trigger review

    ✨ Finishing Touches
    🧪 Generate unit tests (beta) - [ ] Create PR with unit tests - [ ] Commit unit tests in branch `fix/staging-build-auto-trigger`

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    ❤️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

    Comment @coderabbitai help to get the list of available commands.

     
  • Anonymous

    Anonymous - 2026-07-21

    Ticket changed by: adityaharishch

    • status: open --> closed
     

Log in to post a comment.