CI: checks on PRs, and a tag-triggered release with rpm, deb and tarball #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
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, onv*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.tomlpins the tools (rust, git-cliff, ...) and has areleasetask that runs a script (e.g.scripts/release.sh) which uses git-cliff to work out the next version and changelog, bumps the version inCargo.toml/Cargo.lock, updatesCHANGELOG.md, commits, tagsvX.Y.Zand pushes, which triggers the release workflow. Include a dry-run flag.Model it on what already works on this server:
jfro/rm-analyzerandjfro/lamplighter(.forgejo/workflows/ci.yml,release.yml,mise.tomlrelease 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.