From 3b4359d76dacfd604dd1fb95bd0dfc193e51e826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20de=20Hesselle?= Date: Wed, 4 Oct 2023 20:07:47 +0200 Subject: [PATCH] ci: Disable ccache in macOS job As it turns out, ccache accelerates the build so much that it can trigger a race condition in the gobject-introspection subproject. This only surfaced recently as the introspection feature was previously disabled due to missing build time dependencies. The race condition surfaces as follows: the build breaks because gobject-introspection starts to build Gdk-4.0.gir before GdkPixbuf-2.0.gir, despite Gdk-4.0.gir depending on GdkPixbuf-2.0.gir. --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 485e3e8b80..cffc7a824f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -217,16 +217,16 @@ macos-x86_64: MESON_FORCE_BACKTRACKE: 1 TMPDIR: /Users/Shared/work/tmp SDKROOT: /opt/sdks/MacOSX10.13.4.sdk - CCACHE_DIR: /Users/Shared/work/ccache PIP_CACHE_DIR: /Users/Shared/build/cache PIPENV_CACHE_DIR: $PIP_CACHE_DIR PYTHONPYCACHEPREFIX: $PIP_CACHE_DIR EXTRA_MESON_FLAGS: "-Dgobject-introspection:werror=false" before_script: + # Not using ccache on purpose as it accelerates the build so much that it + # can trigger race conditions in the gobject-introspection subproject. - bash .gitlab-ci/show-info-osx.sh - /opt/macports/bin/python3.10 -m venv .venv - ln -s /opt/cmake/CMake.app/Contents/bin/cmake .venv/bin - - ln -s /opt/ccache/ccache .venv/bin - ln -s /opt/pkg-config/bin/pkg-config .venv/bin - ln -s /opt/bison/bin/bison .venv/bin - source .venv/bin/activate