libmks/.gitlab-ci.yml

47 lines
1001 B
YAML
Raw Normal View History

2023-03-29 22:28:59 +00:00
include:
- project: "gnome/citemplates"
file: "flatpak/flatpak_ci_initiative.yml"
stages:
- test
2023-03-29 22:32:43 +00:00
- docs
- deploy
2023-03-29 22:28:59 +00:00
flatpak:
variables:
BUNDLE: "mks-test-widget-dev.flatpak"
MANIFEST_PATH: "org.gnome.libmks.mks.json"
FLATPAK_MODULE: "mks"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
APP_ID: "org.gnome.libmks.mks"
extends: ".flatpak"
2023-03-29 22:32:43 +00:00
reference:
image: fedora:38
stage: docs
needs: []
variables:
MESON_FLAGS: "-Dwerror=true --buildtype=release"
before_script:
- sudo dnf install -y gtk4-devel meson gcc gi-docgen gobject-introspection-devel
script:
- mkdir -p pfx/
- meson ${MESON_FLAGS} --prefix=${PWD}/pfx -Ddocs=true _build
- ninja -C _build install
- mkdir -p _reference/
- mv pfx/share/doc/libmks1/ _reference/
artifacts:
paths:
- _reference
pages:
stage: deploy
needs: ["reference"]
script:
- mv _reference public/
artifacts:
paths:
- public
only:
- main