mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-15 14:55:06 -04:00
Add recipes for use with Native-CI's C/C++/meson and addtional Android NDK images
This commit is contained in:
parent
e52ab98ccd
commit
8bb30f854d
24
C/meson-android.yml
Normal file
24
C/meson-android.yml
Normal 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
21
C/meson.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user