kasts/.gitlab-ci.yml

31 lines
914 B
YAML
Raw Normal View History

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
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
- /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`
- /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
- 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