Test flatpak build

This makes sure the flatpak build actually works and we have
the examples available for easy download.

This is somewhat based on the GTK+4 flatpak CI test.

(cherry picked from commit bcd03848)
12 jobs for ci-backport in 17 minutes and 40 seconds (queued for 3 seconds)