[cairo-commit] 2 commits - .gitlab-ci.yml
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jan 4 12:21:18 UTC 2021
.gitlab-ci.yml | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
New commits:
commit b0ef04e2d5bc218c1504d70d2843532e353516f1
Merge: 0bf2c140d a7a9c1130
Author: Uli Schlachter <psychon at znc.in>
Date: Mon Jan 4 12:21:16 2021 +0000
Merge branch 'meson-ci-android' into 'master'
ci: add meson android aarch64 build
See merge request cairo/cairo!96
commit a7a9c11309c757de362841866c4280882caa3cce
Author: Tim-Philipp Müller <tim at centricular.com>
Date: Thu Dec 31 18:47:25 2020 +0000
ci: add meson android aarch64 build
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0f87e34c9..4c0450d71 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -172,3 +172,44 @@ meson vs2017 x86:
extends: '.build meson windows'
variables:
ARCH: 'x86'
+
+meson android arm64 fedora:
+ # See https://gitlab.freedesktop.org/gstreamer/gst-ci/container_registry/164 for current images
+ image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android-fedora:2020-10-22.0-master'
+ artifacts:
+ name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
+ expire_in: '5 days'
+ when: 'always'
+ paths:
+ - "build/meson-logs/*.txt"
+ before_script:
+ - dnf install -y python3-pip gcc ninja-build gperf
+ - pip3 install --user meson
+ script:
+ - export PATH="$HOME/.local/bin:$PATH"
+ - |
+ cat > android-cross-file.txt <<EOF
+ [constants]
+ ndk_path = '/android/ndk'
+ toolchain = ndk_path + '/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android'
+ api = '28'
+
+ [host_machine]
+ system = 'android'
+ cpu_family = 'aarch64'
+ cpu = 'aarch64'
+ endian = 'little'
+
+ [properties]
+ sys_root = ndk_path + '/sysroot'
+ c_link_args = ['-fuse-ld=gold']
+ cpp_link_args = ['-fuse-ld=gold']
+
+ [binaries]
+ c = toolchain + api + '-clang'
+ cpp = toolchain + api + '-clang++'
+ ar = toolchain + '-ar'
+ strip = toolchain + '-strip'
+ EOF
+ - meson setup --cross-file android-cross-file.txt build
+ - meson compile --verbose -C build
More information about the cairo-commit
mailing list