| 1 | include: |
| 2 | - component: gitlab.gnome.org/GNOME/citemplates/release-service@master |
| 3 | inputs: |
| 4 | job-stage: "deploy" |
| 5 | dist-job-name: "build-fedora" |
| 6 | tarball-artifact-path: "build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz" |
| 7 | |
| 8 | stages: |
| 9 | - test |
| 10 | - deploy |
| 11 | |
| 12 | variables: |
| 13 | DEPENDENCIES: |
| 14 | gcc |
| 15 | redhat-rpm-config |
| 16 | meson |
| 17 | glib2-devel |
| 18 | gobject-introspection-devel |
| 19 | gettext |
| 20 | git |
| 21 | |
| 22 | build-fedora: |
| 23 | image: fedora:latest |
| 24 | stage: test |
| 25 | before_script: |
| 26 | - dnf install -y $DEPENDENCIES |
| 27 | script: |
| 28 | - meson setup build |
| 29 | - meson compile -C build |
| 30 | - meson install -C build |
| 31 | - glib-compile-schemas --dry-run --strict /usr/local/share/glib-2.0/schemas |
| 32 | - meson dist -C build |
| 33 | artifacts: |
| 34 | expose_as: 'Tarball' |
| 35 | paths: |
| 36 | - build/meson-dist/ |