ci: CI checks, tag-triggered rpm/deb/tarball release and mise release task #10

Merged
jfro merged 4 commits from feat/9-ci-release into main 2026-11-29 01:30:27 +00:00
Owner

Closes #9.

Modelled on jfro/rm-analyzer and jfro/lamplighter: same runner labels (linux/amd64, linux/arm64), same publish-release.sh way of creating the Forgejo release from the tag's annotation, same mise run release task and cliff.toml.

What's in it

  • .forgejo/workflows/ci.yml (PRs and pushes to main): in rust:1.100.0-trixie with Qt 6 dev packages, runs cargo fmt --check, cargo clippy --all-targets -- -D warnings (with and without the mock feature) and cargo test.
  • .forgejo/workflows/release.yml (on v* tags): release build on amd64 and arm64, scripts/package.sh makes a .deb, an .rpm and a binary tarball for each, then .forgejo/scripts/publish-release.sh creates (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/Ubuntu libqt6core6t64 | libqt6core6, libqt6gui6, libqt6qml6, libqt6quick6 (all >= 6.8), libqt6dbus6, libqt6network6 and the QtQuick, Controls, Layouts, Shapes, Templates, Window and WorkerScript QML modules, recommends docker.io | docker-ce; Fedora qt6-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] runs scripts/release.sh, which picks the version with git cliff --bumped-version, bumps Cargo.toml and Cargo.lock, writes CHANGELOG.md, commits chore(release): vX.Y.Z, makes a signed annotated tag with the notes, and pushes main and the tag together. -n / --dry-run changes nothing.
  • cliff.toml: rm-analyzer's, pointing at this repo; first tag v0.1.0 (Cargo.toml is already 0.1.0).
  • Clippy fixes (88bad57): the tree had 4 clippy warnings (large_enum_variant on ContainerGroup::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 -n on this branch as main)

$ mise run release -n
Releasing v0.1.0 (Cargo.toml 0.1.0 -> 0.1.0)

## [0.1.0] - 2026-11-29

### Features

- Basic listing of containers & a systray icon/menu ([cc5cc3d](https://git.knope.dev/jfro/krane/commit/cc5cc3dddb44ee2ed3af7c135ed80be9233a6eb2))
- Basic UI & control ([2cbb477](https://git.knope.dev/jfro/krane/commit/2cbb477e9a341bd92745ea608ce4a929f42374e5))
- OrbStack-style Qt window with container details & log viewer ([7bc96c8](https://git.knope.dev/jfro/krane/commit/7bc96c8217d7c20e63195cb0c70dc19b7dc67eb5))
- Krane app & tray icons from a Blender model ([ab0f32a](https://git.knope.dev/jfro/krane/commit/ab0f32a676f4a2f000b4293dc4569f7ea6510a0a))
- Breeze icons in the window, richer tray menu, left-click to open ([8463791](https://git.knope.dev/jfro/krane/commit/84637917784795330bb5db2fe1a082ab4c6fc2a6))
- Volumes and Images pages ([08c5574](https://git.knope.dev/jfro/krane/commit/08c55743367f3ba59c43666eefcca5df8f5744ad))
- Mock data mode and a screenshot script ([3996969](https://git.knope.dev/jfro/krane/commit/3996969a0abe04ffea2e0b70eafd8a426b8386b0))
- Put mock data behind a mock cargo feature ([19f4351](https://git.knope.dev/jfro/krane/commit/19f43514aad411d9ce1116b35c124ba6daddf518))

### Bug Fixes

- Basic things working ([3029eff](https://git.knope.dev/jfro/krane/commit/3029eff402f688be840d98393d4e0981807beec9))
- Build with Qt 6.8, whose QML compiler rejects .public/.private ([fcbe8a4](https://git.knope.dev/jfro/krane/commit/fcbe8a46143734b26a783c8df76ffb9844906511))
- Room between tray submenu labels and the chevron ([c45e5d2](https://git.knope.dev/jfro/krane/commit/c45e5d2f66654692c54d758ef4f046df221e06be))
- Screenshots.sh no longer warns about an installed icon theme ([77de0e8](https://git.knope.dev/jfro/krane/commit/77de0e8c44a16e9b3d3e5df37879cae7188b53f9))
- Clean up clippy lints so CI can deny warnings ([88bad57](https://git.knope.dev/jfro/krane/commit/88bad577ab2c99b75212c488e620d9227c8b8b74))

### Refactoring

- Make Qt the only UI and remove Slint ([dee3b45](https://git.knope.dev/jfro/krane/commit/dee3b45c24d60cf72b22bcd39566be12c65d94e6))

### Documentation

- README with generated screenshots ([2db0e89](https://git.knope.dev/jfro/krane/commit/2db0e894770cbe67f4986f5542f66861db3a2093))

Dry run, nothing changed.

(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, committed chore(release): v0.2.0 and 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 release job is skipped because it isn't a tag, so nothing was published (the repo still has 0 tags and 0 releases):

packages-linux-amd64:  krane_0.1.0~dev.5c052cb_amd64.deb  krane-0.1.0~dev.5c052cb-1.x86_64.rpm   krane-0.1.0~dev.5c052cb-linux-x86_64.tar.gz
packages-linux-arm64:  krane_0.1.0~dev.5c052cb_arm64.deb  krane-0.1.0~dev.5c052cb-1.aarch64.rpm  krane-0.1.0~dev.5c052cb-linux-aarch64.tar.gz

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 start krane --show offscreen for 8 s and check the QML loads with no missing modules):

== debian:trixie deb OK
== ubuntu:26.04 deb OK
== ubuntu:24.04 refuses the deb (Qt too old) OK
== fedora:43 rpm OK
== debian:trixie tarball OK

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:

libqt6core6t64 (>= 6.8) | libqt6core6 (>= 6.8), libqt6gui6 (>= 6.8) | libqt6gui6t64 (>= 6.8), libqt6dbus6 (>= 6.8), libqt6network6 (>= 6.8), libqt6qml6 (>= 6.8), libqt6quick6 (>= 6.8), qml6-module-qtquick, qml6-module-qtquick-controls, qml6-module-qtquick-layouts, qml6-module-qtquick-shapes, qml6-module-qtquick-templates, qml6-module-qtquick-window, qml6-module-qtqml-workerscript

Notes

  • There's no licence in the repo yet, so the packages don't declare one (fpm writes "unknown"). Worth adding a LICENSE and license = in Cargo.toml before the first release.
Closes #9. Modelled on jfro/rm-analyzer and jfro/lamplighter: same runner labels (`linux/amd64`, `linux/arm64`), same `publish-release.sh` way of creating the Forgejo release from the tag's annotation, same `mise run release` task and `cliff.toml`. ## What's in it - **`.forgejo/workflows/ci.yml`** (PRs and pushes to main): in `rust:1.100.0-trixie` with Qt 6 dev packages, runs `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings` (with and without the `mock` feature) and `cargo test`. - **`.forgejo/workflows/release.yml`** (on `v*` tags): release build on amd64 and arm64, `scripts/package.sh` makes a **.deb**, an **.rpm** and a **binary tarball** for each, then `.forgejo/scripts/publish-release.sh` creates (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/Ubuntu `libqt6core6t64 | libqt6core6`, `libqt6gui6`, `libqt6qml6`, `libqt6quick6` (all >= 6.8), `libqt6dbus6`, `libqt6network6` and the QtQuick, Controls, Layouts, Shapes, Templates, Window and WorkerScript QML modules, recommends `docker.io | docker-ce`; Fedora `qt6-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]` runs **`scripts/release.sh`**, which picks the version with `git cliff --bumped-version`, bumps `Cargo.toml` and `Cargo.lock`, writes `CHANGELOG.md`, commits `chore(release): vX.Y.Z`, makes a signed annotated tag with the notes, and pushes main and the tag together. `-n` / `--dry-run` changes nothing. - **`cliff.toml`**: rm-analyzer's, pointing at this repo; first tag `v0.1.0` (Cargo.toml is already 0.1.0). - **Clippy fixes** (88bad57): the tree had 4 clippy warnings (`large_enum_variant` on `ContainerGroup::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 -n` on this branch as main) ``` $ mise run release -n Releasing v0.1.0 (Cargo.toml 0.1.0 -> 0.1.0) ## [0.1.0] - 2026-11-29 ### Features - Basic listing of containers & a systray icon/menu ([cc5cc3d](https://git.knope.dev/jfro/krane/commit/cc5cc3dddb44ee2ed3af7c135ed80be9233a6eb2)) - Basic UI & control ([2cbb477](https://git.knope.dev/jfro/krane/commit/2cbb477e9a341bd92745ea608ce4a929f42374e5)) - OrbStack-style Qt window with container details & log viewer ([7bc96c8](https://git.knope.dev/jfro/krane/commit/7bc96c8217d7c20e63195cb0c70dc19b7dc67eb5)) - Krane app & tray icons from a Blender model ([ab0f32a](https://git.knope.dev/jfro/krane/commit/ab0f32a676f4a2f000b4293dc4569f7ea6510a0a)) - Breeze icons in the window, richer tray menu, left-click to open ([8463791](https://git.knope.dev/jfro/krane/commit/84637917784795330bb5db2fe1a082ab4c6fc2a6)) - Volumes and Images pages ([08c5574](https://git.knope.dev/jfro/krane/commit/08c55743367f3ba59c43666eefcca5df8f5744ad)) - Mock data mode and a screenshot script ([3996969](https://git.knope.dev/jfro/krane/commit/3996969a0abe04ffea2e0b70eafd8a426b8386b0)) - Put mock data behind a mock cargo feature ([19f4351](https://git.knope.dev/jfro/krane/commit/19f43514aad411d9ce1116b35c124ba6daddf518)) ### Bug Fixes - Basic things working ([3029eff](https://git.knope.dev/jfro/krane/commit/3029eff402f688be840d98393d4e0981807beec9)) - Build with Qt 6.8, whose QML compiler rejects .public/.private ([fcbe8a4](https://git.knope.dev/jfro/krane/commit/fcbe8a46143734b26a783c8df76ffb9844906511)) - Room between tray submenu labels and the chevron ([c45e5d2](https://git.knope.dev/jfro/krane/commit/c45e5d2f66654692c54d758ef4f046df221e06be)) - Screenshots.sh no longer warns about an installed icon theme ([77de0e8](https://git.knope.dev/jfro/krane/commit/77de0e8c44a16e9b3d3e5df37879cae7188b53f9)) - Clean up clippy lints so CI can deny warnings ([88bad57](https://git.knope.dev/jfro/krane/commit/88bad577ab2c99b75212c488e620d9227c8b8b74)) ### Refactoring - Make Qt the only UI and remove Slint ([dee3b45](https://git.knope.dev/jfro/krane/commit/dee3b45c24d60cf72b22bcd39566be12c65d94e6)) ### Documentation - README with generated screenshots ([2db0e89](https://git.knope.dev/jfro/krane/commit/2db0e894770cbe67f4986f5542f66861db3a2093)) Dry run, nothing changed. ``` (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, committed `chore(release): v0.2.0` and pushed a signed annotated tag.) ## Packages A non-publishing run of the release workflow on this branch (started by hand, [run 2](https://git.knope.dev/jfro/krane/actions/runs/2)) built all three on both runners; its `release` job is skipped because it isn't a tag, so nothing was published (the repo still has 0 tags and 0 releases): ``` packages-linux-amd64: krane_0.1.0~dev.5c052cb_amd64.deb krane-0.1.0~dev.5c052cb-1.x86_64.rpm krane-0.1.0~dev.5c052cb-linux-x86_64.tar.gz packages-linux-arm64: krane_0.1.0~dev.5c052cb_arm64.deb krane-0.1.0~dev.5c052cb-1.aarch64.rpm krane-0.1.0~dev.5c052cb-linux-aarch64.tar.gz ``` 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 start `krane --show` offscreen for 8 s and check the QML loads with no missing modules): ``` == debian:trixie deb OK == ubuntu:26.04 deb OK == ubuntu:24.04 refuses the deb (Qt too old) OK == fedora:43 rpm OK == debian:trixie tarball OK ``` 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`: ``` libqt6core6t64 (>= 6.8) | libqt6core6 (>= 6.8), libqt6gui6 (>= 6.8) | libqt6gui6t64 (>= 6.8), libqt6dbus6 (>= 6.8), libqt6network6 (>= 6.8), libqt6qml6 (>= 6.8), libqt6quick6 (>= 6.8), qml6-module-qtquick, qml6-module-qtquick-controls, qml6-module-qtquick-layouts, qml6-module-qtquick-shapes, qml6-module-qtquick-templates, qml6-module-qtquick-window, qml6-module-qtqml-workerscript ``` ## Notes - There's no licence in the repo yet, so the packages don't declare one (fpm writes "unknown"). Worth adding a LICENSE and `license =` in Cargo.toml before the first release.
ci: depend on Qt 6.8, which the build needs, and Qt DBus/Network
All checks were successful
CI / test (pull_request) Successful in 4m57s
5c052cb610
chore: ignore dist/ from scripts/package.sh
All checks were successful
CI / test (pull_request) Successful in 4m52s
c4854d86f6
jfro left a comment

Review from Nye (posted by Upper Wolfjaw; Nye's token can't comment):

Approved at 5c052cb. Tried on my computer:

  • CI: this PR's run is green. cargo fmt --check passes. src/ only has 88bad57's clippy fixes (Box, or_default, as_chunks), with no behaviour change.
  • scripts/package.sh gives a .deb, .rpm and tarball with the binary, desktop file, 9 icon sizes and README. The .deb installs on clean Debian 13 and the .rpm on Fedora 45 (Qt 6.11). The 6.8 deps resolve, ldd finds everything, and krane starts headless.
  • mise run release, run in a scratch clone pushing to a local bare repo: --dry-run changes nothing. Auto (0.1.0) and patch (0.1.1) bump Cargo.toml and Cargo.lock, write CHANGELOG.md, sign the tag and push main and the tag atomically. An existing tag is refused.
  • publish-release.sh on a throwaway Forgejo 17: notes come from the tag (no signature), all 3 assets attach with matching checksums, a rerun updates in place, and an empty dist fails.
  • release.yml runs only on v* tags. A dispatch builds artifacts only.

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.)

Review from Nye (posted by Upper Wolfjaw; Nye's token can't comment): Approved at 5c052cb. Tried on my computer: - CI: this PR's run is green. cargo fmt --check passes. src/ only has 88bad57's clippy fixes (Box, or_default, as_chunks), with no behaviour change. - scripts/package.sh gives a .deb, .rpm and tarball with the binary, desktop file, 9 icon sizes and README. The .deb installs on clean Debian 13 and the .rpm on Fedora 45 (Qt 6.11). The 6.8 deps resolve, ldd finds everything, and krane starts headless. - mise run release, run in a scratch clone pushing to a local bare repo: --dry-run changes nothing. Auto (0.1.0) and patch (0.1.1) bump Cargo.toml and Cargo.lock, write CHANGELOG.md, sign the tag and push main and the tag atomically. An existing tag is refused. - publish-release.sh on a throwaway Forgejo 17: notes come from the tag (no signature), all 3 assets attach with matching checksums, a rerun updates in place, and an empty dist fails. - release.yml runs only on v* tags. A dispatch builds artifacts only. 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.)
jfro merged commit 400b65af15 into main 2026-11-29 01:30:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/krane!10
No description provided.