Commit 5387640b authored by Bruce Cowan's avatar Bruce Cowan

Change CI to flatpak

parent 0141dd46
Pipeline #1695 passed with stage
in 18 seconds
image: fedora:latest
stages:
- build
build:
flatpak:
image: flatpak/flatpak-builder:gnome-3-28
stage: build
variables:
MANIFEST_PATH: "build-aux/uk.me.bcowan.Rugby.json"
RUNTIME_REPO: "https://sdk.gnome.org/gnome.flatpakrepo"
FLATPAK_MODULE: "rugby"
BUNDLE: "rugby.flatpak"
MESON_ARGS: ""
DBUS_ID: "uk.me.bcowan.Rugby"
script:
- dnf install -y 'pkgconfig(gtk+-3.0)' gcc meson ninja-build
- meson builddir
- ninja -C builddir
\ No newline at end of file
- 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
cache:
paths:
- .flatpak-builder/cache
{
"app-id" : "uk.me.bcowan.Rugby",
"runtime" : "org.gnome.Platform",
"runtime-version" : "3.28",
"sdk" : "org.gnome.Sdk",
"command" : "rugby",
"finish-args" : [
"--socket=x11",
"--socket=wayland"
],
"modules" : [
{
"name" : "rugby",
"buildsystem" : "meson",
"builddir" : true,
"sources" : [
{
"type" : "git",
"url" : "https://git.fossgalaxy.com/SuborbitalPigeon/rugby.git"
}
]
}
],
"build-options" : {
"env" : {
}
}
}
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