mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-22 15:19:16 +02:00
Merge branch 'macos_ci' into 'main'
interim solution for macOS CI See merge request GNOME/glib!3503
This commit is contained in:
commit
65e7a10d2a
@ -519,23 +519,38 @@ freebsd-13-x86_64:
|
|||||||
- "_build/glib/glibconfig.h"
|
- "_build/glib/glibconfig.h"
|
||||||
- "_build/meson-logs"
|
- "_build/meson-logs"
|
||||||
|
|
||||||
.macos:
|
macos-x86_64:
|
||||||
extends: .only-origin
|
extends: .only-origin
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- macos
|
- macosintel
|
||||||
needs: []
|
needs: []
|
||||||
|
cache: []
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: normal
|
GIT_SUBMODULE_STRATEGY: normal
|
||||||
|
# -Wno-overlength-strings
|
||||||
# libpcre2 gets built as a subproject, but the default Clang options on
|
# libpcre2 gets built as a subproject, but the default Clang options on
|
||||||
# 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/build/cache
|
||||||
|
PIPENV_CACHE_DIR: $PIP_CACHE_DIR
|
||||||
|
PYTHONPYCACHEPREFIX: $PIP_CACHE_DIR
|
||||||
|
# target OS X 10.9 Mavericks for backward compatibility
|
||||||
|
SDKROOT: /opt/sdks/MacOSX10.9.sdk
|
||||||
|
# use the runner's ccache directory
|
||||||
|
CCACHE_DIR: /Users/Shared/work/ccache
|
||||||
before_script:
|
before_script:
|
||||||
- bash .gitlab-ci/show-execution-environment.sh
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
- pip3 install --user meson==1.0.0
|
- python3 -m venv .venv
|
||||||
- pip3 install --user ninja
|
- ln -s /opt/cmake/CMake.app/Contents/bin/cmake .venv/bin
|
||||||
- export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
|
- ln -s /opt/ccache/ccache .venv/bin
|
||||||
|
- source .venv/bin/activate
|
||||||
|
- pip3 install meson==1.2.0
|
||||||
|
- pip3 install ninja==1.11.1
|
||||||
script:
|
script:
|
||||||
# FIXME: Use --wrap-mode=default so we download dependencies each time,
|
# FIXME: Use --wrap-mode=default so we download dependencies each time,
|
||||||
# until the macOS runner is a VM where we can use a pre-made image which
|
# until the macOS runner is a VM where we can use a pre-made image which
|
||||||
|
@ -80,7 +80,8 @@ gio_tests = {
|
|||||||
},
|
},
|
||||||
'g-file' : {},
|
'g-file' : {},
|
||||||
'g-file-info' : {
|
'g-file-info' : {
|
||||||
'can_fail' : host_system == 'windows' and cc.get_id() != 'gcc',
|
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3070
|
||||||
|
'can_fail' : host_system == 'darwin' or host_system == 'windows' and cc.get_id() != 'gcc',
|
||||||
},
|
},
|
||||||
'g-icon' : {},
|
'g-icon' : {},
|
||||||
'gdbus-addresses' : {},
|
'gdbus-addresses' : {},
|
||||||
@ -281,7 +282,10 @@ if host_machine.system() != 'windows'
|
|||||||
'unix-streams' : {},
|
'unix-streams' : {},
|
||||||
'g-file-info-filesystem-readonly' : {},
|
'g-file-info-filesystem-readonly' : {},
|
||||||
'gschema-compile' : {'install' : false},
|
'gschema-compile' : {'install' : false},
|
||||||
'trash' : {},
|
'trash' : {
|
||||||
|
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3069
|
||||||
|
'can_fail' : host_system == 'darwin',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
# LD_PRELOAD modules don't work so well with AddressSanitizer
|
# LD_PRELOAD modules don't work so well with AddressSanitizer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user