Verified Commit 5f3227ca authored by yodatak's avatar yodatak Committed by Jordan Petridis

Add Flatpak CI job

Also delete duplicate flatpak manifest in the repo
parent 8279b774
Pipeline #62586 passed with stage
in 58 seconds
stages:
- build
variables:
BUNDLE: 'org.gnome.font-viewer.Devel.flatpak'
flatpak:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
stage: 'build'
variables:
MANIFEST_PATH: 'flatpak/org.gnome.font-viewer.json'
MESON_ARGS: ''
RUNTIME_REPO: 'https://sdk.gnome.org/gnome-nightly.flatpakrepo'
FLATPAK_MODULE: 'gnome-font-viewer'
DBUS_ID: 'org.gnome.font-viewer'
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- flatpak build app meson --prefix=/app ${MESON_ARGS} _build
- flatpak build app ninja -C _build install
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
artifacts:
paths:
- ${BUNDLE}
- _build/meson-logs/meson-log.txt
expire_in: 7 days
cache:
paths:
- .flatpak-builder/downloads
- .flatpak-builder/git
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
"modules": [ "modules": [
{ {
"name": "gnome-desktop", "name": "gnome-desktop",
"buildsystem": "meson",
"sources": [ "sources": [
{ {
"type": "git", "type": "git",
......
{
"app-id": "org.gnome.font-viewer",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "gnome-font-viewer",
"finish-args": [
"--device=dri",
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
"--talk-name=ca.desrt.conf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"cleanup": [
"/include",
"/lib/pkgconfig", "/share/pkgconfig",
"/share/aclocal",
"/man", "/share/man", "/share/gtk-doc",
"*.la", ".a",
"/lib/girepository-1.0",
"/share/gir-1.0",
"/share/doc"
],
"modules": [
{
"name": "gnome-desktop",
"buildsystem": "autotools",
"builddir": true,
"config-opts": [
"--libdir=/app/lib"
],
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/gnome-desktop"
}
]
},
{
"name": "gnome-font-viewer",
"buildsystem": "meson",
"builddir": true,
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/gnome-font-viewer",
"branch": "wip/matthiasc/character-variations"
}
]
}
]
}
Markdown is supported
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