[libnma/lr/gtk4-ui-files] gitlab: build libnma-gtk4 in CI pipeline




commit 7e79133f38015ca0c16e8cd513bdd36781bbfaca
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Mar 22 12:41:10 2022 +0100

    gitlab: build libnma-gtk4 in CI pipeline
    
    This installs and enables libnma-gtk4 during full builds.
    
    As make dist includes a full build, bump the dist image from Fedora 28 to
    Fedora 35 as the former is too old to have Gtk4.

 .gitlab-ci.yml | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 11e7544b..a07d85fd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,7 +40,7 @@
 
 .dist: &dist
   dependencies:
-    - fedora28_dist
+    - fedora35_dist
   variables:
     GIT_STRATEGY: none
 
@@ -105,6 +105,7 @@
       --disable-introspection
       --disable-vala
       --disable-more-warnings
+      --without-libnma-gtk4
       --without-gcr
     - make -j$(nproc)
     - make -j$(nproc) check
@@ -128,23 +129,27 @@
       --enable-introspection
       --enable-vala
       --enable-more-warnings
+      --with-libnma-gtk4
       --with-gcr
     - make -j$(nproc)
     - make -j$(nproc) check
     - make -j$(nproc) install
     - make -j$(nproc) uninstall
 
-fedora28_dist:
+fedora35_dist:
   <<: *fedora_full
-  image: fedora:28
+  image: fedora:35
   stage: build
   script:
     - dnf -y install
       autoconf automake make
-      NetworkManager-devel
-      NetworkManager-glib-devel
+      gtk4-devel
+      xorg-x11-server-Xvfb xorg-x11-xinit
     - sh autogen.sh
-    - make -j$(nproc) distcheck
+    # The Xvfb dance below is because of
+    # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4415
+    - xinit /bin/sh -c 'make -j$(nproc) distcheck && touch .success' -- /usr/bin/Xvfb :5
+    - test -e .success
   artifacts:
     paths:
       - "*.xz"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]