diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-08-31 11:20:28 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-08-31 12:09:27 +0300 |
commit | ac10d5abd11d56783e7612ad64bdcf224302ce18 (patch) | |
tree | e12df125fd28fba2e8c659cbe0cadb5aae2f4e6a | |
parent | 76cd6722c09c5848820702b31911c7f110d85329 (diff) |
ci: Add an Android arm64 job run on Fedora
Uses the same image as the android examples job on the cerbero CI.
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/51>
-rw-r--r-- | .gitlab-ci.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5613a05..7067341 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -156,3 +156,44 @@ ios arm64: EOF - meson setup --werror -Dorc-test=disabled -Db_bitcode=true --cross-file ios-cross-file.txt build - meson compile --verbose -C build + +android fedora arm64: + image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android-fedora:2020-06-25.0-master' + stage: 'build' + 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 + - 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 --werror --cross-file android-cross-file.txt build + - meson compile --verbose -C build |