Skip to main content

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/eventBuild selectionPublish behavior
ci: push to nx2 changing VERSION or CHANGELOG.mdRelease candidate or stable build, based on VERSIONPublishes unless the version tag/release already exists or the changelog section is empty
daily: scheduled at 03:00 UTC, or manually dispatchedUses vars.DAILY_BRANCH, defaulting to nx2-experimental; skips if the latest daily release already points to its tipDispatches ci with kind=daily and pgo=both
ci: Actions → Run workflowBranch build, or daily build restricted to the configured daily branchPublishes by default; publish can disable the release
ci: same-repository pull request labeled ci:build, synchronized, or reopenedBuilds the PR head commitPublishes a rolling branch pre-release
ci: fork pull requestNo buildNo publication
First-merge and CI-only caveats
  • The ci workflow only runs on nx2 pushes that change VERSION or CHANGELOG.md; ordinary source pushes do not trigger it.
  • A version-triggered push fails in preflight if the matching changelog section is absent or empty.
  • daily must 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:build label 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:

InputValuesDefault and behavior
kindbranch, dailybranch; daily is allowed only from the configured daily branch
build_linux, build_windows, build_macos, build_androidBooleanAll true; selects platform builds
linux_archboth, x86_64, aarch64both; also selects Linux systems for the Nix job
build_nixyes, no, onlyyes; only skips the regular platform builds
pgonone, both, onlynone; controls PGO variants on Linux and Windows
save_cacheBooleanfalse; caches are restored regardless
publishBooleantrue; 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.

PlatformJobs and outputsArtifact name
Linux x86_64 and aarch64Standard builds produce AppImage and .tar.gz; optional PGO builds produce the same formatseglantine-linux-x86_64-<sha>, eglantine-linux-aarch64-<sha>; PGO names append -pgo before the SHA
Windows x86_64Standard MSVC .zip; optional MinGW/clang PGO .zipeglantine-windows-x86_64-<sha>; PGO appends -pgo before the SHA
macOS Apple SiliconApp bundle .zip and .dmg; runner defaults to macos-26 and can be overridden with MACOS_RUNNEReglantine-macos-arm64-<sha>
Android arm64Release APK from the mainline flavor, built and signed the same way a local assembleMainlineRelease build iseglantine-android-arm64-<sha>
NixOptional Nix packages; this job does not gate release publicationNo platform release artifact is uploaded by this job
Package requirements

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​

  1. Add release notes under ## [Unreleased].
  2. Open Actions → bump-version → Run workflow, and select major, minor, patch, rc, or release.
  3. The workflow updates VERSION and CHANGELOG.md, pushes release/vX.Y.Z[-rcN], and opens or updates a PR into nx2.
  4. Review and merge the PR. The resulting VERSION change triggers ci.
  5. Test RC binaries before selecting release to 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.

First versioned release

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​

  • ci or bump-version is missing from Actions: the workflow must be present on the repository's default branch.
  • Scheduled build does not start: check that daily is on the default branch and scheduled Actions are enabled; schedules can be delayed or disabled after inactivity.
  • Version build is skipped: check the VERSION syntax 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.