mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 02:17: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:
@@ -791,17 +791,16 @@ freebsd-13-x86_64:
|
|||||||
- "_build/meson-logs"
|
- "_build/meson-logs"
|
||||||
|
|
||||||
macos-arm64:
|
macos-arm64:
|
||||||
only:
|
extends: .only-default
|
||||||
- branches@GNOME/glib
|
|
||||||
# runner's maintainer
|
|
||||||
- branches@dehesselle/glib
|
|
||||||
except:
|
|
||||||
- tags
|
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- macosarm
|
- macos
|
||||||
|
- arm64
|
||||||
needs: []
|
needs: []
|
||||||
cache: []
|
cache:
|
||||||
|
- key: $CI_JOB_NAME_SLUG
|
||||||
|
paths:
|
||||||
|
- ccache
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: normal
|
GIT_SUBMODULE_STRATEGY: normal
|
||||||
# -Wno-overlength-strings
|
# -Wno-overlength-strings
|
||||||
@@ -809,20 +808,17 @@ macos-arm64:
|
|||||||
# macOS limit string lengths to 4095B — pcre2_error.c has a string of length
|
# macOS limit string lengths to 4095B — pcre2_error.c has a string of length
|
||||||
# 4380B
|
# 4380B
|
||||||
CFLAGS: -Wno-overlength-strings
|
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
|
# target macOS 11 Big Sur
|
||||||
SDKROOT: /opt/sdks/MacOSX11.3.sdk
|
SDKROOT: /opt/sdks/MacOSX11.3.sdk
|
||||||
# use the runner's ccache directory
|
CCACHE_DIR: $CI_PROJECT_DIR/ccache
|
||||||
CCACHE_DIR: /Users/Shared/work/ccache
|
CCACHE_MAXSIZE: "200Mi"
|
||||||
|
# Redirect to the runner's volatile temporary directory which
|
||||||
|
# unbreaks a couple of tests.
|
||||||
|
TMPDIR: /Volumes/RAM
|
||||||
before_script:
|
before_script:
|
||||||
- bash .gitlab-ci/show-execution-environment.sh
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
- python3 -m venv .venv
|
- 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
|
- source .venv/bin/activate
|
||||||
- pip3 install meson==1.4.2 ninja==1.11.1.1 packaging==23.2
|
- pip3 install meson==1.4.2 ninja==1.11.1.1 packaging==23.2
|
||||||
script:
|
script:
|
||||||
|
Reference in New Issue
Block a user