CI: Add macOS CI, including a clang build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc91dc6..0fc7fe6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,6 +23,11 @@ variables:
image: 'registry.freedesktop.org/freetype/docker-images/debian:latest'
stage: 'build'
+.build macos common:
+ stage: 'build'
+ tags:
+ - 'gst-macos-11.1'
+
.build windows meson:
extends: '.build windows common'
variables:
@@ -142,3 +147,37 @@ linux cmake libs:
-D FT_REQUIRE_ZLIB=TRUE
cmake --build build --target install
+
+macos autotools:
+ extends: '.build macos common'
+ before_script:
+ - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
+ script:
+ - brew install autoconf automake libtool
+ - ./autogen.sh
+ - ./configure
+ - 'make -j$(sysctl -n hw.logicalcpu)'
+ - make install
+
+macos autotools clang:
+ extends: '.build macos common'
+ before_script:
+ - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
+ script:
+ - brew install autoconf automake libtool
+ - ./autogen.sh
+ - './configure CC=clang'
+ - 'make -j$(sysctl -n hw.logicalcpu)'
+ - make install
+
+macos meson:
+ extends: '.build macos common'
+ script:
+ - pip3 install --upgrade pip
+ - pip3 install -U meson
+ - pip3 install --upgrade certifi
+ - pip3 install -U ninja
+
+ - meson setup build
+ - meson compile --verbose -C build
+ - sudo meson install -C build