Build the Flatpak on pull requests and main, and publish releases from tags #4
No reviewers
Labels
No labels
Kind/Bug
Kind/Chore
Kind/Docs
Kind/Feature
Kind/Security
Priority
High
Priority
Low
Reviewed
Duplicate
Reviewed
Invalid
Status
Blocked
Status
Needs-Decision
Status
Wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Strawly-Music/desktop!4
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/flatpak-releases"
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?
Build on pull requests and main
.forgejo/workflows/build.ymlruns the unit tests and builds the Flatpak bundle on every pull request and every push tomain. The bundle is kept as a workflow artifact for 30 days, named likestrawly-music-0.1.0-ac67e06-x86_64.flatpak.flatpak), inghcr.io/flathub-infra/flatpak-github-actions:kde-6.11, which hasflatpak-builderand the KDE 6.11 SDK preinstalled.-DBUILD_TESTING=OFF, so the tests are built and run separately withflatpak runinorg.kde.Sdk//6.11.flatpak-builderneeds user namespaces for bubblewrap. The repository is public, so pull requests from forks do not run. Push a fork's branch here to build it.mainrequires thebuild / build (pull_request)check to pass before merging.Releases from tags
Pushing a tag like
v0.2.0runs the same build, then creates a Forgejo release with the.flatpakattached (actions/forgejo-release, using the automatic job token).project(strawly-music VERSION ...)inCMakeLists.txtanddata/app.strawly.music.metainfo.xmlhas a matching<release>entry.v0.2.0-rc.1, is published as a pre-release.flatpak install --user strawly-music-0.2.0-x86_64.flatpakalso installsorg.kde.Platform//6.11.Checked locally
The test step and the bundle step pass on this machine with the same commands: both tests pass in the SDK, and the bundle builds with the binary inside. This pull request is the first run on the runner.
eda4d1b5bb539dc29b90