[glibmm] CI: Skip building with Autotools if glib is too old
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] CI: Skip building with Autotools if glib is too old
- Date: Sat, 27 Aug 2022 08:12:51 +0000 (UTC)
commit 818d7a22708ddc225b6363cd845e6cd72481028d
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Sat Aug 27 10:10:58 2022 +0200
CI: Skip building with Autotools if glib is too old
.gitlab-ci.yml | 8 ++++++++
1 file changed, 8 insertions(+)
---
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]