Eglantine CI and release guide
The ci workflow builds Linux, Windows, macOS, and Android packages, optionally builds Nix packages, and can publish a GitHub Release. Reusable platform workflows upload artifacts; release assembles them and publishes only when its conditions pass.
What runs when
| Workflow/event | Build selection | Publish behavior |
|---|---|---|
ci: push to nx2 changing VERSION or CHANGELOG.md | Release candidate or stable build, based on VERSION | Publishes unless the version tag/release already exists or the changelog section is empty |
daily: scheduled at 03:00 UTC, or manually dispatched | Uses vars.DAILY_BRANCH, defaulting to nx2-experimental; skips if the latest daily release already points to its tip | Dispatches ci with kind=daily and pgo=both |
ci: Actions → Run workflow | Branch build, or daily build restricted to the configured daily branch | Publishes by default; publish can disable the release |
ci: same-repository pull request labeled ci:build, synchronized, or reopened | Builds the PR head commit | Publishes a rolling branch pre-release |
ci: fork pull request | No build | No publication |
- The
ciworkflow only runs onnx2pushes that changeVERSIONorCHANGELOG.md; ordinary source pushes do not trigger it. - A version-triggered push fails in preflight if the matching changelog section is absent or empty.
dailymust exist on the default branch for GitHub's schedule to run. Scheduled runs can be delayed, and GitHub may disable schedules after 60 days without activity on a public repository.- The
ci:buildlabel authorizes a write-enabled publishing path for same-repository PR code. Add it only after reviewing that code as trusted. Fork PRs are intentionally excluded. - Build artifacts are retained for seven days. Only published releases persist beyond that.
CI build options
The ci manual dispatch offers these options:
| Input | Values | Default and behavior |
|---|---|---|
kind | branch, daily | branch; daily is allowed only from the configured daily branch |
build_linux, build_windows, build_macos, build_android | Boolean | All true; selects platform builds |
linux_arch | both, x86_64, aarch64 | both; also selects Linux systems for the Nix job |
build_nix | yes, no, only | yes; only skips the regular platform builds |
pgo | none, both, only | none; controls PGO variants on Linux and Windows |
save_cache | Boolean | false; caches are restored regardless |
publish | Boolean | true; when false, only workflow artifacts are produced |
Version pushes and scheduled builds request both PGO variants. Branch builds default to no PGO variants. macOS does not have a PGO build.
Platform jobs and artifacts
The reusable workflows upload artifacts named with the build commit SHA. The release workflow strips that SHA from downloadable release asset filenames.
| Platform | Jobs and outputs | Artifact name |
|---|---|---|
| Linux x86_64 and aarch64 | Standard builds produce AppImage and .tar.gz; optional PGO builds produce the same formats | eglantine-linux-x86_64-<sha>, eglantine-linux-aarch64-<sha>; PGO names append -pgo before the SHA |
| Windows x86_64 | Standard MSVC .zip; optional MinGW/clang PGO .zip | eglantine-windows-x86_64-<sha>; PGO appends -pgo before the SHA |
| macOS Apple Silicon | App bundle .zip and .dmg; runner defaults to macos-26 and can be overridden with MACOS_RUNNER | eglantine-macos-arm64-<sha> |
| Android arm64 | Release APK from the mainline flavor, built and signed the same way a local assembleMainlineRelease build is | eglantine-android-arm64-<sha> |
| Nix | Optional Nix packages; this job does not gate release publication | No platform release artifact is uploaded by this job |
Linux AppImages require glibc 2.39 or newer. Linux tarballs use system Qt. Windows packages include deployed runtime dependencies. macOS packages are ad-hoc signed, not notarized. Android APKs are signed with the debug key unless a release keystore is configured, so they install over previous builds but cannot be uploaded to the Play Store.
Versioned releases
VERSION must contain one semantic version on one line: X.Y.Z or X.Y.Z-rcN, without leading zeroes in numeric components. ci uses it to form vX.Y.Z or vX.Y.Z-rcN. A stable release is marked latest; an RC is a pre-release. The release job reads the matching version section from CHANGELOG.md.
Creating a release
- Add release notes under
## [Unreleased]. - Open Actions →
bump-version→ Run workflow, and selectmajor,minor,patch,rc, orrelease. - The workflow updates
VERSIONandCHANGELOG.md, pushesrelease/vX.Y.Z[-rcN], and opens or updates a PR intonx2. - Review and merge the PR. The resulting
VERSIONchange triggersci. - Test RC binaries before selecting
releaseto promote that candidate to stable.
major, minor, and patch start an RC and move the non-empty [Unreleased] notes into its version section. They are rejected while VERSION is already an RC. rc increments the candidate number; release removes the RC suffix and dates the changelog heading. The workflow does not merge its PR. Merge or close the current release PR before starting another bump.
The matching changelog section must contain real, non-blank notes before the version-triggered build can publish. Confirm the intended initial version and release notes with maintainers before merging a first version bump.
Branch builds and cleanup
For a ci:build PR, CI checks out the PR head commit, not GitHub's synthetic merge commit. Branch builds publish rolling pre-releases; repeated builds replace the same branch release. Their tags are branch-<slug>. The cleanup-branch workflow removes releases when a same-repository PR closes or a branch is deleted, and also sweeps orphaned releases weekly (Monday 04:30 UTC) or when manually dispatched.
Fork PR code is not built or published by the base repository. Contributors can run ci manually in their own fork; any release belongs to that fork.
Troubleshooting
ciorbump-versionis missing from Actions: the workflow must be present on the repository's default branch.- Scheduled build does not start: check that
dailyis on the default branch and scheduled Actions are enabled; schedules can be delayed or disabled after inactivity. - Version build is skipped: check the
VERSIONsyntax and whether its tag/release already exists. - Release notes preflight fails: ensure the matching
## [X.Y.Z]changelog section has at least one non-blank entry. - Bump workflow cannot create a PR: enable GitHub Actions permission to create and approve pull requests, or create the release PR manually.
- A branch pre-release remains: run Actions →
cleanup-branch→ Run workflow to sweep orphaned releases.