summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-27 10:10:58 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-27 10:10:58 +0200
commit818d7a22708ddc225b6363cd845e6cd72481028d (patch)
tree1459c42a8bd4cacb40330395767452125e13ee48
parentc38afabd92a746a3476e5371acf24a34548b3335 (diff)
downloadglibmm-818d7a22708ddc225b6363cd845e6cd72481028d.tar.gz
CI: Skip building with Autotools if glib is too old
-rw-r--r--.gitlab-ci.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 139a3e0a..ac51f290 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,11 +80,19 @@ autotools_build:
variables:
DEPENDENCIES: $MESON_DEPS make autoconf
script:
+ # Don't try to build with Autotools if the image's version of glib is too old.
+ # Meson can build glib as a subproject, but Autotools has no subprojects.
+ - glib_required=`sed -n '/glibreq=/ s/.*\(2\.[0-9]*\.[0-9]*\).*/\1/p' configure.ac`
+ - glib_exists=`pkg-config --modversion glib-2.0`
+ - if test $glib_required '>' $glib_exists; then
+ - echo GLib $glib_exists exists, $glib_required required. Skip building with Autotools.
+ - else
- cp -r installdir/usr /
- ./autogen.sh --enable-warnings=fatal --prefix=/usr
- make
- make check
- make install
+ - fi
allow_failure: true
debug_gcc_build: