mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-21 11:44:51 +02:00
ci: Update macOS job for new CI runner
Remove settings no longer required on an ephemeral runner (redirecting cache locations etc.). Adjust cache settings.
This commit is contained in:
parent
e237ec6c81
commit
dc23a17fb1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user