imsd-messages/.forgejo/workflows
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 57a751dbdb
ci: build the aarch64 flatpak and publish it
The flatpak is built after the tests for pull requests, when started by
hand and for a pushed tag X.Y.Z. Only the tag's run publishes: the
flatpak to the Catcrafts flatpak repository as its stable branch, the
app's ref file beside the repository with the repository's key in it —
the checkout's file, read as the build user like every file of the
checkout, made before anything is published, so a file that cannot carry
the key publishes nothing, and moved into place after it — and release
X.Y.Z on the forge with the metainfo's notes, the bundle and that ref
file. A push to main without a tag runs nothing. That is the release
model of Crafter.Build 6: every push to main is a release, made by the
tag the owner signs and pushes with it. packaging/release-version.sh
makes that workflow's checks — the tag is the version of the app and of
the metainfo's newest release, annotated and signed by the owner as
Forgejo verifies it, on main, and newer than every release published —
and in every run checks the app's version against the metainfo's, as the
version's comment in Model.cppm now says. Release runs share a
concurrency group, so one queues behind another.

Two jobs, by trust: check builds a pull request or a run by hand with
neither the published repository nor its key, publish builds a pushed
tag, and only its volumes feed what is signed. Both run on the
organisation's privileged flatpak runner: check cold, with no host
volume; publish with the four volumes it mounts — the crafter-build
installation the organisation's publish jobs share, this app's own
cache, the repository and the key — which the runner's config must
allow. It publishes into the repository Crafter.Build's and
Crafter.Review's workflows publish to, under the lock each of them holds
while it commits and updates the summary, signed with the same key,
which stays on the runner host, and keeps its bundle as an artifact. The
pacman and flatpak downloads get five tries, 30 s apart: Flathub's CDN
and Arch's Fastly mirror answer 502 now and then, flatpak reports a
summary it could not fetch as a missing runtime, and a mirror answering
502 can fail a pacman transaction even with another mirror behind it.

The README says how to install it and how to stop it starting at login;
AGENTS.md describes CI, a release, what guards the volumes and which of
them the runner must allow, and names what a released copy leaves on a
phone that later releases keep good: the stored rows and their
enumerators, the conversation key, the app id and the login entry's
command, the instance's interface.
2026-11-18 01:13:56 +01:00
..
flatpak.yaml ci: build the aarch64 flatpak and publish it 2026-11-18 01:13:56 +01:00