CI: checks on PRs, and a tag-triggered release with rpm, deb and tarball #9

Closed
opened 2026-11-29 00:50:16 +00:00 by jfro · 0 comments
Owner

Jeremy asked for this as the last piece of the project.

Regular CI (.forgejo/workflows/ci.yml, on pushes to main and PRs): the standard checks only: cargo fmt --check, cargo clippy/cargo check, cargo test.

Release CI (.forgejo/workflows/release.yml, on v* tags): build a release binary, package it with fpm (or equivalent) as an rpm, a deb, and a binary tarball, and attach all three to a Forgejo release entry for the tag, with the git-cliff notes as its body. Packages should install the binary plus the desktop file and icon, and declare the Qt 6 runtime dependencies.

Release task: mise.toml pins the tools (rust, git-cliff, ...) and has a release task that runs a script (e.g. scripts/release.sh) which uses git-cliff to work out the next version and changelog, bumps the version in Cargo.toml/Cargo.lock, updates CHANGELOG.md, commits, tags vX.Y.Z and pushes, which triggers the release workflow. Include a dry-run flag.

Model it on what already works on this server: jfro/rm-analyzer and jfro/lamplighter (.forgejo/workflows/ci.yml, release.yml, mise.toml release task, cliff.toml): same runner labels, same way of creating the release.

Done when: CI is green on the PR, the release task dry-run prints the next version and notes, and the packaging steps are shown to produce an installable deb and rpm and a tarball (built locally or in a CI run that does not publish). The first real tag is Jeremy's to cut.

Jeremy asked for this as the last piece of the project. **Regular CI** (`.forgejo/workflows/ci.yml`, on pushes to main and PRs): the standard checks only: `cargo fmt --check`, `cargo clippy`/`cargo check`, `cargo test`. **Release CI** (`.forgejo/workflows/release.yml`, on `v*` tags): build a release binary, package it with fpm (or equivalent) as an **rpm**, a **deb**, and a **binary tarball**, and attach all three to a Forgejo release entry for the tag, with the git-cliff notes as its body. Packages should install the binary plus the desktop file and icon, and declare the Qt 6 runtime dependencies. **Release task**: `mise.toml` pins the tools (rust, git-cliff, ...) and has a `release` task that runs a script (e.g. `scripts/release.sh`) which uses git-cliff to work out the next version and changelog, bumps the version in `Cargo.toml`/`Cargo.lock`, updates `CHANGELOG.md`, commits, tags `vX.Y.Z` and pushes, which triggers the release workflow. Include a dry-run flag. Model it on what already works on this server: `jfro/rm-analyzer` and `jfro/lamplighter` (`.forgejo/workflows/ci.yml`, `release.yml`, `mise.toml` release task, `cliff.toml`): same runner labels, same way of creating the release. Done when: CI is green on the PR, the release task dry-run prints the next version and notes, and the packaging steps are shown to produce an installable deb and rpm and a tarball (built locally or in a CI run that does not publish). The first real tag is Jeremy's to cut.
jfro closed this issue 2026-11-29 01:30:27 +00:00
Sign in to join this conversation.
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#9
No description provided.