2021-04-06 17:04:17 +02:00
|
|
|
# SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
|
|
|
|
# SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
2020-04-24 23:34:42 +02:00
|
|
|
include:
|
|
|
|
- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-before.yml
|
2020-05-09 23:47:45 +02:00
|
|
|
- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-extragear-linux.yml
|
2021-05-31 21:36:16 +02:00
|
|
|
- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-reuse.yml
|
2020-05-09 23:47:45 +02:00
|
|
|
|
|
|
|
android:
|
2020-05-10 14:45:07 +02:00
|
|
|
variables:
|
2020-05-10 15:26:52 +02:00
|
|
|
CI_TOOLING: /home/user/ci-tooling
|
2020-05-10 15:24:27 +02:00
|
|
|
|
2020-05-09 23:53:21 +02:00
|
|
|
stage: build
|
2020-05-13 11:44:21 +02:00
|
|
|
image: kdeorg/android-sdk
|
2020-05-10 16:25:48 +02:00
|
|
|
|
2020-05-10 23:56:55 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-05-11 19:14:58 +02:00
|
|
|
- "*.apk"
|
2020-05-10 23:56:55 +02:00
|
|
|
|
2020-05-09 23:47:45 +02:00
|
|
|
script:
|
2020-05-11 19:14:58 +02:00
|
|
|
- cd /home/user
|
2020-05-13 12:09:00 +02:00
|
|
|
- /opt/helpers/build-kde-dependencies $CI_PROJECT_NAME
|
2020-05-11 19:14:58 +02:00
|
|
|
- APK_ARGS=`python3 /opt/helpers/get-apk-args.py $CI_PROJECT_DIR`
|
2020-05-13 12:09:00 +02:00
|
|
|
- /opt/helpers/build-cmake $CI_PROJECT_NAME $CI_PROJECT_DIR $APK_ARGS -DANDROID_APK_OUTPUT_DIR=$CI_PROJECT_DIR
|
|
|
|
- pushd build-arm/$CI_PROJECT_NAME
|
2020-05-10 23:56:55 +02:00
|
|
|
- make create-apk
|
|
|
|
- popd
|
2020-05-13 12:09:00 +02:00
|
|
|
- pushd build-arm64/$CI_PROJECT_NAME
|
2020-05-10 23:56:55 +02:00
|
|
|
- make create-apk
|
2020-05-10 21:55:54 +02:00
|
|
|
- popd
|