From c1a46fed91680913cc921c577a4ec101a88369ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 11 Oct 2023 11:01:16 -0400
Subject: [PATCH] CI: another workaround for macOS with XCode 15

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a9136b1f..137f85f48 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -100,7 +100,8 @@ pkg_windows:
 pkg_macOS:
   stage: pkg
   script:
-    - meson rewrite kwargs set project / version "$VERSION"
+    # Enforce the arm64 meson for rewrite, as a workaround to https://github.com/mesonbuild/meson/issues/12282
+    - env PATH="/opt/homebrew/bin:$PATH" meson rewrite kwargs set project / version "$VERSION"
     - ln -s ~/tarballs macOS/deps/
     - arch -x86_64 make -C macOS
   cache:
-- 
GitLab