Commit bc3d225e authored by yodatak's avatar yodatak

Implement the gitlab CI, flatpak build and artifact upload

parent f1d9811b
stages:
- build
variables:
BUNDLE: "org.gnome.Clocks.Devel.flatpak"
flatpak:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: build
variables:
MANIFEST_PATH: "data/flatpak/org.gnome.clocks.json"
MESON_ARGS: "-Dprofile=development"
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
FLATPAK_MODULE: "gnome-clocks"
DBUS_ID: "org.gnome.clocks"
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- flatpak build app meson --prefix=/app -Dprofile=development ${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: 30 days
cache:
paths:
- .flatpak-builder/downloads
- .flatpak-builder/git
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