Merge branch 'sysext-2' into 'main'

ci: Build gnomeos container

See merge request GNOME/gnome-shell!3381
This commit is contained in:
Martin Abente Lahaye 2024-06-21 12:40:26 +00:00
commit 5a6da09bef
2 changed files with 44 additions and 0 deletions

View file

@ -1,11 +1,13 @@
include:
- remote: 'https://gitlab.gnome.org/GNOME/citemplates/raw/HEAD/flatpak/flatpak_ci_initiative.yml'
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/057b052e682d8e5a20c1eb2dd60d5b87d2b56856/templates/fedora.yml'
- remote: "https://gitlab.freedesktop.org/alatiera/ci-templates/-/raw/bf008eaa01c5f1770e52c1b477caaedb6790df7d/templates/gnomeos.yml"
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/bc70242ffb8402243e934659ecc1a2d1c89eca2b/templates/ci-fairy.yml'
- project: 'Infrastructure/openshift-images/gnome-release-service'
file: '/ci-templates/release-module.yml'
stages:
- container-build
- pre_review
- prep
- review
@ -349,3 +351,21 @@ build-toolbox:
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME"'
- if: '$CI_COMMIT_BRANCH =~ /^gnome-[0-9-]+$/ && $CI_PROJECT_NAMESPACE == "GNOME"'
.container.gnomeos.nightly@x86_64:
stage: "container-build"
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
before_script:
- cat /etc/os-release
variables:
FDO_UPSTREAM_REPO: "gnome/gnome-shell"
FDO_DISTRIBUTION_TAG: "2024-06-21.0"
FDO_DISTRIBUTION_VERSION: "core-nightly"
FDO_DISTRIBUTION_EXEC: >-
bash .gitlab.ci/install-gnomeos-dependencies.sh
artifacts:
expire_in: 1 day
paths:
- ./extension

View file

@ -0,0 +1,24 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(dirname $0)"
DEST_DIR=$PWD/extension
MESON_OPTIONS="--prefix=/usr --libdir=/usr/lib/$(gcc -print-multiarch)"
mkdir -p $DEST_DIR
$SCRIPT_DIR/checkout-mutter.sh
# FIXME move mutter requirements to a mutter/.gitlab-ci/build-gnomeos-dependencies.sh
git clone --branch 1.23.0 --single-branch https://gitlab.freedesktop.org/wayland/wayland.git
meson setup wayland/build wayland $MESON_OPTIONS
meson compile -C wayland/build
meson install -C wayland/build --destdir $DEST_DIR
sudo meson install -C wayland/build
meson setup mutter/build mutter $MESON_OPTIONS
meson compile -C mutter/build
meson install -C mutter/build --destdir $DEST_DIR
sudo meson install -C mutter/build
echo "Successfully prepared $DEST_DIR"