Commit bcd03848 authored by Guido Gunther's avatar Guido Gunther
Browse files

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.
parent 21580d37
Pipeline #51180 passed with stages
in 19 minutes and 43 seconds
...@@ -131,6 +131,28 @@ lintian-debian-buster-package: ...@@ -131,6 +131,28 @@ lintian-debian-buster-package:
- package-debian-buster - package-debian-buster
extends: .l5-lintian-debian-package extends: .l5-lintian-debian-package
package-flatpak:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
tags:
- flatpak
stage: package
variables:
app_id: "sm.puri.Handy.Demo"
artifacts:
paths:
- "${app_id}-dev.flatpak"
expire_in: 1 day
before_script:
- flatpak install -y --noninteractive gnome-nightly org.gnome.Sdk org.gnome.Platform
- rm -rf _build/
script:
- bash -x .gitlab-ci/flatpak-build.sh "${app_id}"
artifacts:
when: always
paths:
- _build/meson-logs/meson-log.txt
- sm.puri.Handy.Demo-dev.flatpak
publish-docs: publish-docs:
stage: deploy stage: deploy
dependencies: dependencies:
......
#!/bin/bash
set -e
builddir=app
repodir=repo
appid="$1"
manifest=examples/${appid}.json
flatpak-builder \
--stop-at=libhandy \
${builddir} \
${manifest}
flatpak-builder -v \
--run ${builddir} ${manifest} \
meson \
--prefix /app \
--libdir /app/lib \
--buildtype debug \
-Dintrospection=disabled \
-Dvapi=false \
_build .
flatpak-builder \
--run ${builddir} ${manifest} \
ninja -C _build install
flatpak-builder \
--finish-only \
--repo=${repodir} \
${builddir} \
${manifest}
flatpak build-bundle \
${repodir} \
${appid}-dev.flatpak \
--runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
${appid}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment