ci: Update macOS job for new CI runner

Remove settings no longer required on an ephemeral runner (redirecting
cache locations etc.).

Adjust cache settings.

(cherry picked from commit dc23a17fb1)
This commit is contained in:
René de Hesselle
2025-04-18 16:17:27 +02:00
parent e2ed5efc0e
commit 2d07e766ca

View File

@@ -791,17 +791,16 @@ freebsd-13-x86_64:
- "_build/meson-logs"
macos-arm64:
only:
- branches@GNOME/glib
# runner's maintainer
- branches@dehesselle/glib
except:
- tags
extends: .only-default
stage: build
tags:
- macosarm
- macos
- arm64
needs: []
cache: []
cache:
- key: $CI_JOB_NAME_SLUG
paths:
- ccache
variables:
GIT_SUBMODULE_STRATEGY: normal
# -Wno-overlength-strings
@@ -809,20 +808,17 @@ macos-arm64:
# macOS limit string lengths to 4095B — pcre2_error.c has a string of length
# 4380B
CFLAGS: -Wno-overlength-strings
# redirect to the runner's volatile temporary directory
TMPDIR: /Users/Shared/work/tmp
# keep the user profile clean
PIP_CACHE_DIR: /Users/Shared/work/cache
PIPENV_CACHE_DIR: "${PIP_CACHE_DIR}"
PYTHONPYCACHEPREFIX: "${PIP_CACHE_DIR}"
# target macOS 11 Big Sur
SDKROOT: /opt/sdks/MacOSX11.3.sdk
# use the runner's ccache directory
CCACHE_DIR: /Users/Shared/work/ccache
CCACHE_DIR: $CI_PROJECT_DIR/ccache
CCACHE_MAXSIZE: "200Mi"
# Redirect to the runner's volatile temporary directory which
# unbreaks a couple of tests.
TMPDIR: /Volumes/RAM
before_script:
- bash .gitlab-ci/show-execution-environment.sh
- python3 -m venv .venv
- curl -L https://github.com/ccache/ccache/releases/download/v4.9.1/ccache-4.9.1-darwin.tar.gz | tar -C .venv/bin -xz --strip-components=1 ccache-4.9.1-darwin/ccache
- ln -s /opt/ccache/ccache .venv/bin
- source .venv/bin/activate
- pip3 install meson==1.4.2 ninja==1.11.1.1 packaging==23.2
script: