113 lines
3.1 KiB
YAML
113 lines
3.1 KiB
YAML
include:
|
|
- https://gitlab.gnome.org/Infrastructure/freedesktop-ci-templates/-/raw/master/templates/fedora.yml
|
|
- component: "gitlab.gnome.org/GNOME/citemplates/release-service@master"
|
|
inputs:
|
|
job-stage: "release"
|
|
dist-job-name: "build-fedora"
|
|
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
|
|
|
|
variables:
|
|
COMMON_BUILD_OPTIONS: --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --libdir=/usr/lib64 -Dpam-prefix=/etc -Drun-dir=/run/gdm -Dudev-dir=/lib/udev/rules.d -Ddefault-path=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin -Dprofiling=true -Dplymouth=enabled -Dselinux=enabled
|
|
MESON_BUILD_DIR: build
|
|
TARBALL_ARTIFACT_PATH: "${MESON_BUILD_DIR}/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
|
|
|
|
stages:
|
|
- prepare
|
|
- build
|
|
- release
|
|
|
|
workflow:
|
|
rules:
|
|
# Allow to switch from branch pipelines to MR pipelines seamlessly
|
|
# https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines
|
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
|
|
when: never
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
# Don't trigger a branch pipeline if there is an open MR
|
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
|
when: never
|
|
- if: '$CI_COMMIT_BRANCH'
|
|
- if: '$CI_COMMIT_TAG'
|
|
|
|
.gdm.fedora:
|
|
variables:
|
|
FDO_DISTRIBUTION_VERSION: 41
|
|
FDO_DISTRIBUTION_TAG: '2025-02-06.0'
|
|
FDO_DISTRIBUTION_PACKAGES:
|
|
accountsservice-devel
|
|
audit-libs-devel
|
|
check-devel
|
|
dconf
|
|
desktop-file-utils
|
|
gettext-devel
|
|
git
|
|
gobject-introspection-devel
|
|
iso-codes-devel
|
|
itstool
|
|
json-glib-devel
|
|
keyutils-libs-devel
|
|
libattr-devel
|
|
libgudev-devel
|
|
libdmx-devel
|
|
libselinux-devel
|
|
libtool
|
|
meson
|
|
nss-devel
|
|
pam-devel
|
|
plymouth-devel
|
|
redhat-rpm-config
|
|
systemd
|
|
systemd-devel
|
|
which
|
|
yelp-devel
|
|
gtk3-devel
|
|
libXau-devel
|
|
libXdmcp-devel
|
|
xorg-x11-server-Xorg
|
|
xorg-x11-server-devel
|
|
|
|
.dummy-container-build:
|
|
script:
|
|
- echo Dummy container build
|
|
|
|
build-fedora-container:
|
|
extends:
|
|
#- .fdo.container-build@fedora@x86_64
|
|
- .dummy-container-build
|
|
- .gdm.fedora
|
|
stage: prepare
|
|
rules:
|
|
- when: always
|
|
|
|
build-fedora:
|
|
extends:
|
|
- .fdo.distribution-image@fedora
|
|
- .gdm.fedora
|
|
stage: build
|
|
script:
|
|
- meson setup ${MESON_BUILD_DIR} ${COMMON_BUILD_OPTIONS}
|
|
- meson compile -C ${MESON_BUILD_DIR}
|
|
- meson install -C ${MESON_BUILD_DIR}
|
|
- meson dist -C ${MESON_BUILD_DIR}
|
|
- meson test -C ${MESON_BUILD_DIR}
|
|
rules:
|
|
- when: always
|
|
artifacts:
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
when: always
|
|
paths:
|
|
- "${TARBALL_ARTIFACT_PATH}"
|
|
|
|
build-fedora-wayland:
|
|
extends:
|
|
- .fdo.distribution-image@fedora
|
|
- .gdm.fedora
|
|
stage: build
|
|
script:
|
|
- meson setup ${MESON_BUILD_DIR} ${COMMON_BUILD_OPTIONS} -Dx11-support=false
|
|
- meson compile -C ${MESON_BUILD_DIR}
|
|
- meson install -C ${MESON_BUILD_DIR}
|
|
- meson dist -C ${MESON_BUILD_DIR}
|
|
- meson test -C ${MESON_BUILD_DIR}
|
|
rules:
|
|
- if: $CI_COMMIT_TAG == null
|