[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 04:52:15 +0000 (UTC)
commit 6acca6c4589d8a2dfcf796cba2740676b1163846
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 | 23 +++++++++++++++++++++++
.gitlab-ci/show-execution-environment.sh | 11 +++++++++++
2 files changed, 34 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18565b2913..5cb2b0e179 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -144,6 +144,29 @@ 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.54
+ - pip3 install --user ninja
+ - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
+ script:
+ - meson subprojects download glib
+ - meson wrap promote subprojects/glib/subprojects/libffi.wrap
+ - meson wrap promote subprojects/glib/subprojects/proxy-libintl.wrap
+ - 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}
+ _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 || :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]