[gtk/macos-ci] ci: Add a macos build




commit 84760835a5b051fe8e8614b48d2a1278c7cce1e3
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..782b30e95f 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.55.3
+    - 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} -Dx11-backend=false
+            _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]