summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAnurag Thakur <anuthadev@gmail.com>2021-10-12 18:26:35 +0530
committerAnurag Thakur <anuthadev@gmail.com>2021-10-12 21:06:41 +0530
commitede96b239b90bf9c9d9a01f06005ae09fb4fa19b (patch)
tree7055367e08ddfbba2f21d448bad288008eef5fa7 /.gitlab-ci.yml
parente294a95ca85f4d1aa2cd1a6e00e572acd7f03871 (diff)
downloadfreetype2-ede96b239b90bf9c9d9a01f06005ae09fb4fa19b.tar.gz
CI: Add macOS CI, including a clang build
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc91dc639..0fc7fe60b 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