Skip to content

Pull requests build the app in debug; the release build runs on main only - #304

Merged
Mpdreamz merged 1 commit into
mainfrom
ci/release-build-on-main
Nov 19, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
ci/release-build-on-main

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

Agreed with the owner in chat. The release build is whole-module, so pinned file times (#301) cannot make it incremental. It took 14 to 26 minutes on every pull request, longer than the rest of ci together.

Changes

  • build (a required check, so it still runs on pull requests) compiles the app in debug, which is incremental on the cache main saves. It bundles with scripts/bundle.sh debug, then runs the appcast and tutor checks on that bundle. text-check reads its log, which covers HeedCore, the helper and the app.
  • release-build is new and runs on pushes to main only: the same mise run bundle, saving its .build under its own cache name and pruning old ones.
  • release.yml restores that cache (cache: release), so a release still starts from main's release build. It builds the release again before it publishes, so a release-only break cannot ship; it now shows on the merge instead of on the pull request.

Not verified

  • The tutor check on a debug bundle has not been run anywhere yet (it launches the app, so I did not run it on the owner's machine). This PR's own CI is the first run; if it fails there, the fix is to keep the tutor on the release build.
  • The first run is a full debug build including MLX, because no debug cache exists yet. The gain shows from the second main run on.
  • release-build is not in the branch protection list (build, docs, test) and a failure there does not block anything.

🤖 Generated with Claude Code

…only

The release build is whole-module, so it cannot be incremental: it took 14 to 26 minutes on every pull request while the
rest of ci finished in about ten, and nothing a pull request changes needs it before it merges.

- `build` (required, so it keeps running on pull requests) now compiles the app in debug, which is incremental on the
  cache main saves, bundles it, and runs the appcast and tutor checks on that bundle. text-check reads its log.
- `release-build` runs on pushes to main only: the same `mise run bundle` as before, saving the release .build under its
  own cache name. release.yml restores that one (`cache: release`), so a release still starts from main's release build.
- The release workflow builds the release again before it publishes, so a release-only break cannot ship; it now shows on
  the merge instead of on the pull request.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added the chore Maintenance label Nov 19, 2026
@Mpdreamz
Mpdreamz merged commit 4cae13d into main Nov 19, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the ci/release-build-on-main branch November 19, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant