Add recipes for use with Native-CI's C/C++/meson and addtional Android NDK images

This commit is contained in:
Jens Finkhaeuser 2022-10-28 11:09:20 +02:00
parent e52ab98ccd
commit 8bb30f854d
No known key found for this signature in database
GPG Key ID: DA01242B366033F9
2 changed files with 45 additions and 0 deletions

24
C/meson-android.yml Normal file
View File

@ -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

21
C/meson.yml Normal file
View File

@ -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