Repository navigation
Making a release
A release is a new ISO with a version number. This page is the whole procedure in order, with what can go wrong at each step; the details of the build and the publishing script are in Build and tests.
The one rule that shapes the order: someone who installs the new ISO and someone who only applies the updates must end up with the same system. So the packages and the update come first, and the tag is placed on the commit that carries them.
- Check that nobody else is about to tag: another session or person may have unfinished work in the same repository.
- Work from WSL for the
ghsteps (Development environment). - Tag only when the tests pass:
test_setup.pyandtest_build.py(Making a change).
-
Publish the packages that changed.
tools/publish-changed-packages.shshows which;--runbuilds and publishes them (Packages). The ISO build downloads the published.debs, so a package that is not published is compiled again by the build, and the cabinets would not have it. -
Publish the update. Write
updates/notes/NNNN.md(English, shown on the cabinet) andupdates/notes/pt-BR/NNNN.md(Portuguese, for the Telegram group), then runtools/make-update.sh "Title", with--rebootif the machine has to restart (Publishing updates). The update has to cover everything that changed in the system since the last one. -
Check that nothing is left out. This has to print nothing (
LAST_UPDATEis the commit of the last line ofupdates/index):git log --oneline LAST_UPDATE..HEAD -- fliperos-setup config packaging patches fliperos-rootfs.sh fliperos-mkiso.sh
If it prints commits, go back to step 2. A change that only works after a generated file (an EDID, the initramfs, a
modprobe.dfile) needs a step in the update that generates it, asboot_applyintools/cabinet-update.shdoes. -
Raise the version. Change
FLIPEROS_VERSIONinfliperos-mkiso.sh, then change the other places that name it:git grep -n "fliperos-0\.25"(use the old version) lists the READMEs, the wiki and the tests. The tag has to be exactly this number, with nov. -
Write the changelog. Add
## VERSIONat the top ofCHANGELOG.md, above the previous version, with what changed since it (git log PREVIOUS..HEADlists the commits). The section has an intro and the four headings**System changes:**,**Package changes:**,**fliperos-setup changes:**and**Tool changes:**, each with a list of items.ReleaseTestsfails if the first section is not the version ofFLIPEROS_VERSIONor if a heading is missing. -
Optional: the Telegram text.
docs/telegram/VERSION.mdis a list of messages (a picture and a caption each, in Portuguese and English) separated by---. Without it, the group gets the changelog section. Check it withpython3 tools/telegram-post.py --dry-run VERSION(Telegram group). -
Commit and push to
main. -
Tag and push the tag:
git tag 0.26 git push origin 0.26
-
Follow the build. It takes about 3 hours without caches (the limit is 6):
wsl -d Ubuntu-22.04 -- gh run list -R juniorterin/fliperOS -w Release wsl -d Ubuntu-22.04 -- gh run watch RUN_ID --exit-status wsl -d Ubuntu-22.04 -- gh run view RUN_ID --log-failed
-
Check the result. The release has the ISO (or its parts),
fliperos-VERSION.sha256,fliperos-VERSION-pkglist.txtand the changelog text; the Telegram group got the post.tools/verify-iso.shran on the ISO before it was published.
-
Redo a version that was just tagged:
git tag -f 0.26on the new commit, thengit push -f origin 0.26. The build of the old tag still running is cancelled, and a release that was already published is replaced. Do it only for a version nobody has downloaded yet. - Build without publishing: Actions > Release > Run workflow. It builds the current version's ISO and keeps it as an artifact for 3 days.
-
Post to Telegram again: Actions > Telegram > Run workflow, with the version (dry run only checks the file). With
allit posts every version of the changelog, oldest first. -
Publish an ISO built on your machine:
tools/release-publish.sh, in the audit container (Build and tests). It refuses an ISO that is not from the current repository, one with a Wi-Fi network saved in it, and a version without a changelog section.
-
The workflow stops at the first step. The tag is not
FLIPEROS_VERSION, the changelog has no section for it, or the Telegram text does not pass the dry run. The message names which. -
The build fails.
fliperos-mkiso.logis kept as a workflow artifact for 7 days. A recipe that compiled badly shows there. - Cabinets on the previous level miss something that is in the ISO. Step 3 was skipped: publish the update that covers the difference.
-
.github/workflows/release.ymlruns on a tag that starts with a digit. It checks the tag, the changelog and the Telegram text, then builds the packages repository (the published.debs come first, only the missing ones are compiled), then the ISO withDockerfile.fliperos, then publishes withtools/release-publish.sh --replace, then calls the Telegram workflow. - The kernel and the packages are cached by key: the kernel by
fliperos-kernel.sh key(the version, the patches and the script), the packages by the hash ofpackaging/andDockerfile.packages. - The Google sign-in of the cloud backup gets its client from repository secrets while the ISO builds (Variables).
See also: Publishing updates, Packages, Build and tests, Development.
Start here
The installed system
Frontends
Games
Emulators
Controls
Cabinet hardware
Network
For developers