From 80d11e2104a1213a0e7755b5eb90b3c58d6e236a Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 25 Mar 2026 15:02:26 +0100 Subject: [PATCH] gitlab-ci: make so the CI works both with HEAD of babl and last release. While we want to try with the last tagged release (babl 0.1.124), we still need the CI to work with the latest code. So let's add one more temporary fix. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d30c7a057..11b2e33f00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -245,7 +245,9 @@ deps-debian-nonreloc: ## Build babl - echo "RUN printf \"\e[0Ksection_start:\`date +%s\`:babl_build[collapsed=true]\r\e[0KBuilding babl\n\"" >> Dockerfile2; - echo "RUN git clone --branch \"\$([ \"$CI_COMMIT_TAG\" ] && echo \"\$(git ls-remote --tags --exit-code --refs https://gitlab.gnome.org/GNOME/babl.git | grep -oi \"BABL_[0-9]*_[0-9]*_[0-9]*\" | sort --version-sort | tail -1)\" || echo \"master\")\" --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git" babl >> Dockerfile2; - - echo "RUN meson setup babl/_build-${RUNNER} babl -Dprefix=\"${GIMP_PREFIX}\" -Drelocatable=enabled $PKGCONF_RELOCATABLE_OPTION $WARN_AS_ERROR_ON_CI" >> Dockerfile2; + # TODO: remove this line once we have a babl 0.1.126. Takes care of an option name change. + - export BABL_RELOCATABLE_OPTION=$(([ $CI_COMMIT_TAG ] && (([ $RELOCATABLE_OPTION ] && echo -Drelocatable=enabled) || true)) || echo $RELOCATABLE_OPTION) + - echo "RUN meson setup babl/_build-${RUNNER} babl -Dprefix=\"${GIMP_PREFIX}\" $BABL_RELOCATABLE_OPTION $PKGCONF_RELOCATABLE_OPTION $WARN_AS_ERROR_ON_CI" >> Dockerfile2; - echo "RUN ninja -C babl/_build-${RUNNER}" >> Dockerfile2; - echo "RUN ninja -C babl/_build-${RUNNER} install" >> Dockerfile2; - echo "RUN printf \"\e[0Ksection_end:\`date +%s\`:babl_build\r\e[0K\n\"" >> Dockerfile2;