ci: CI checks, tag-triggered rpm/deb/tarball release and mise release task #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/9-ci-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #9.
Modelled on jfro/rm-analyzer and jfro/lamplighter: same runner labels (
linux/amd64,linux/arm64), samepublish-release.shway of creating the Forgejo release from the tag's annotation, samemise run releasetask andcliff.toml.What's in it
.forgejo/workflows/ci.yml(PRs and pushes to main): inrust:1.100.0-trixiewith Qt 6 dev packages, runscargo fmt --check,cargo clippy --all-targets -- -D warnings(with and without themockfeature) andcargo test..forgejo/workflows/release.yml(onv*tags): release build on amd64 and arm64,scripts/package.shmakes a .deb, an .rpm and a binary tarball for each, then.forgejo/scripts/publish-release.shcreates (or updates) the release for the tag with the git-cliff notes and attaches all of them. It can also be started by hand (workflow_dispatch): that builds the packages as artifacts and publishes nothing.scripts/package.sh: fpm packages with/usr/bin/krane,krane.desktop(Exec=krane --show), hicolor icons 16 to 512 px and the README. Declared runtime deps: Debian/Ubuntulibqt6core6t64 | libqt6core6,libqt6gui6,libqt6qml6,libqt6quick6(all >= 6.8),libqt6dbus6,libqt6network6and the QtQuick, Controls, Layouts, Shapes, Templates, Window and WorkerScript QML modules, recommendsdocker.io | docker-ce; Fedoraqt6-qtbase,qt6-qtbase-gui,qt6-qtdeclarative(>= 6.8).mise.toml: pins rust 1.100.0 (clippy, rustfmt) and git-cliff 2.14.2;mise run release [major|minor|patch|X.Y.Z] [-n] [-y]runsscripts/release.sh, which picks the version withgit cliff --bumped-version, bumpsCargo.tomlandCargo.lock, writesCHANGELOG.md, commitschore(release): vX.Y.Z, makes a signed annotated tag with the notes, and pushes main and the tag together.-n/--dry-runchanges nothing.cliff.toml: rm-analyzer's, pointing at this repo; first tagv0.1.0(Cargo.toml is already 0.1.0).88bad57): the tree had 4 clippy warnings (large_enum_variantonContainerGroup::Standalone, now boxed;unwrap_or_default;explicit_auto_deref;chunks_exact→as_chunks). No behaviour change.No tag was pushed and no release was published; the first tag is Jeremy's.
Release task dry run (
mise run release -non this branch as main)(A real run in a throwaway clone pushing to a local bare repo,
scripts/release.sh 0.2.0 -y, bumped Cargo.toml and Cargo.lock to 0.2.0, wrote CHANGELOG.md, committedchore(release): v0.2.0and pushed a signed annotated tag.)Packages
A non-publishing run of the release workflow on this branch (started by hand, run 2) built all three on both runners; its
releasejob is skipped because it isn't a tag, so nothing was published (the repo still has 0 tags and 0 releases):Those CI-built amd64 packages, installed in clean containers (install, check
/usr/bin/krane, the desktop file and icon are there and every library resolves, then startkrane --showoffscreen for 8 s and check the QML loads with no missing modules):The binary is built on Debian 13 and uses Qt 6.8's QML compiler symbols, so it needs Qt 6.8+: on Ubuntu 24.04 (Qt 6.4) it fails with
undefined symbol ... AOTCompiledContext::getEnumLookup. The packages declare>= 6.8, so apt refuses them there instead of installing something that can't start. Supported: Debian 13, Ubuntu 25.04+, Fedora 41+.dpkg-deb -f krane_*.deb Depends:Notes
license =in Cargo.toml before the first release.Review from Nye (posted by Upper Wolfjaw; Nye's token can't comment):
Approved at
5c052cb. Tried on my computer:Notes, not blocking: prerelease versions (0.2.0-rc.1) sort after 0.2.0 in deb/rpm, so 0.2.0~rc.1 would be safer. A workflow_dispatch run from a tag ref would also publish.
Not tried: a real tag on the runners, including arm64.
(The head since then,
c4854d8, only adds dist/ to .gitignore.)