[gtk/macos-ci] ci: Add a macos build
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/macos-ci] ci: Add a macos build
- Date: Sun, 3 Jan 2021 15:29:39 +0000 (UTC)
commit 567ac44833eb4c55a720f1468e57b1143bf61c74
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 2 22:34:52 2021 -0500
ci: Add a macos build
Most of this is cribbed from glib.
.gitlab-ci.yml | 25 +++++++++++++++++++++++++
.gitlab-ci/show-execution-environment.sh | 11 +++++++++++
meson.build | 10 ++++++++--
3 files changed, 44 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18565b2913..687e58d28e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -144,6 +144,31 @@ msys2-mingw64:
MSYSTEM: "MINGW64"
CHERE_INVOKING: "yes"
+macos:
+ stage: build
+ tags:
+ - macos
+ needs: []
+ before_script:
+ - bash .gitlab-ci/show-execution-environment.sh
+ - pip3 install --user meson==0.55.3
+ - pip3 install --user ninja
+ - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
+ script:
+ - meson subprojects download glib
+ - meson setup _build/subprojects/glib subprojects/glib
+ - meson compile -Csubprojects/glib
+ - meson subprojects download cairo
+ - meson wrap promote subprojects/cairo/subprojects/pixman.wrap
+ - meson subprojects download pango
+ - meson wrap promote subprojects/pango/subprojects/fribidi.wrap
+ - meson wrap promote subprojects/pango/subprojects/harfbuzz.wrap
+ - meson ${COMMON_MESON_FLAGS}
+ -Dx11-backend=false
+ -Dintrospection=disabled
+ _build
+ - ninja -C _build
+
.flatpak-defaults:
image: $FLATPAK_IMAGE
stage: flatpak
diff --git a/.gitlab-ci/show-execution-environment.sh b/.gitlab-ci/show-execution-environment.sh
new file mode 100755
index 0000000000..0c22651616
--- /dev/null
+++ b/.gitlab-ci/show-execution-environment.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -eux -o pipefail
+
+id || :
+capsh --print || :
+env -0 | sort -z | perl -pe 's/\0/\n/g' || :
+setpriv --dump || :
+ulimit -a || :
+cat /proc/self/status || :
+cat /proc/self/mountinfo || :
diff --git a/meson.build b/meson.build
index 60e7729a8e..e8d6841116 100644
--- a/meson.build
+++ b/meson.build
@@ -381,8 +381,14 @@ epoxy_dep = dependency('epoxy', version: epoxy_req,
harfbuzz_dep = dependency('harfbuzz', version: '>= 0.9', required: false,
fallback: ['harfbuzz', 'libharfbuzz_dep'])
xkbdep = dependency('xkbcommon', version: xkbcommon_req, required: wayland_enabled)
-graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
- fallback: ['graphene', 'graphene_dep'])
+if os_darwin
+ graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
+ fallback: ['graphene', 'graphene_dep'],
+ default_options: ['introspection=false'])
+else
+ graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
+ fallback: ['graphene', 'graphene_dep'])
+endif
iso_codes_dep = dependency('iso-codes', required: false)
gtk_doc_dep = dependency('gtk-doc', version: '>=1.33',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]