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