From 8bb30f854d8e8715e08d394f2917b6362daeaf46 Mon Sep 17 00:00:00 2001 From: Jens Finkhaeuser Date: Fri, 28 Oct 2022 11:09:20 +0200 Subject: [PATCH] Add recipes for use with Native-CI's C/C++/meson and addtional Android NDK images --- C/meson-android.yml | 24 ++++++++++++++++++++++++ C/meson.yml | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 C/meson-android.yml create mode 100644 C/meson.yml diff --git a/C/meson-android.yml b/C/meson-android.yml new file mode 100644 index 0000000..a78b0a4 --- /dev/null +++ b/C/meson-android.yml @@ -0,0 +1,24 @@ +# Image: https://coderberg.org/native-ci/android-ndk +# +# See meson.yml - the main difference is that this uses a different image that +# includes an Android NDK installation as well as cross compilation profiles +# for the NDK's platforms. +# +# The cross compilation files for meson includes a `sys_root` property that you +# may need to pass on to the compiler. +pipeline: + build: + image: codeberg.org/native-ci/android-ndk:latest + # this step gets ran on "master" and "dev" branch. + # also runs on pull requests targeting these branch. + when: + branch: [ master, dev ] + commands: | + # Possible profiles: + # android-arm64-v8a.txt + # android-armeabi-v7a.txt + # android-x86_64.txt + # android-x86.txt + mkdir build && cd build + meson --cross-file android-arm64-v8a.txt .. + ninja -v diff --git a/C/meson.yml b/C/meson.yml new file mode 100644 index 0000000..f9dc40b --- /dev/null +++ b/C/meson.yml @@ -0,0 +1,21 @@ +# Image: https://coderberg.org/native-ci/cpp-meson +# +# Meson (https://www.mesonbuild.com) provides builds for C, C++, etc. +# It typically generates ninja (https://ninja-build.org/) files. +# +# As native code dependencies may need to be installed via Conan +# (https://conan.io/), it is also included in the image (usage +# not in this example). +# +# Includes GCC and clang +pipeline: + build: + image: codeberg.org/native-ci/cpp-meson:latest + # this step gets ran on "master" and "dev" branch. + # also runs on pull requests targeting these branch. + when: + branch: [ master, dev ] + commands: | + mkdir build && cd build + meson .. + ninja -v