From 9705673fb5adc2ad433dd2792038496663d85799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Tue, 7 Apr 2026 14:13:50 +0200 Subject: [PATCH] ci(gitlab): Fix the CI on shared macOS runners --- .gitlab-ci.main.kts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.main.kts b/.gitlab-ci.main.kts index f6ca74e..ebf0827 100755 --- a/.gitlab-ci.main.kts +++ b/.gitlab-ci.main.kts @@ -36,17 +36,15 @@ fun Job.stripUnicodeTestReports() { // language="Shell Script" shell($$""" find . -path '*/build/test-results/*/TEST-*.xml' -print0 | - grep -zP '[^\x00-\x{00FF}]' | + perl -C -0ne 'print if /[^\x00-\xFF]/' | while IFS= read -r -d '' f; do d="$(dirname "$f")" b="$(basename "$f")" - nb=$(printf '%s' "$b" | LC_ALL=C sed -E \ - -e 's/[\xc4-\xdf][\x80-\xbf]/-/g' \ - -e 's/[\xe0-\xef][\x80-\xbf]{2}/-/g' \ - -e 's/[\xf0-\xf4][\x80-\xbf]{3}/-/g') + nb=$(printf '%s' "$b" | perl -C -pe 's/[\x{80}-\x{FFFF}]/-/g') mv -- "$f" "$d/$nb" done """.trimIndent()) + shell("find . -path '*/build/test-results/*/TEST-*.xml'") } } @@ -81,10 +79,11 @@ fun Job.nativeLinuxX64() { fun Job.nativeIosArm64() { useGradle() - image("macos-15-xcode-16") + image("macos-26-xcode-26") beforeScript { shell("xcodebuild -downloadPlatform iOS") + shell("xcodebuild -downloadPlatform watchOS") } tag("saas-macos-medium-m1") @@ -92,6 +91,8 @@ fun Job.nativeIosArm64() { retry(1) { onExitCode(1) } + + stripUnicodeTestReports() } // endregion -- 2.51.2