- build: android
os: ubuntu-22.04
arch: aarch64-linux-android32
+ - build: android-recovery
+ os: ubuntu-22.04
+ arch: aarch64-linux-android32
- build: windows-cygwin-64
os: windows-latest
arch: x86_64
set_ci_target_os
case "${CI_TARGET_BUILD}/${CI_TARGET_OS}" in
- android/*)
+ android*/*)
export UNAME=Android
if [ -z "${CI_TARGET_ARCH}" ]; then
echo "Error: CI_TARGET_ARCH has not been set"
fi
NDK=$PWD/android-ndk-r24/toolchains/llvm/prebuilt/linux-x86_64/bin
export PATH="${NDK}:${PATH}"
- export LIBS="-landroid"
+ if [ "${CI_TARGET_BUILD}" = "android" ]; then
+ export LIBS="-landroid"
+ fi
CC=${NDK}/${CI_TARGET_ARCH}-clang
if [ ! -e "${CC}" ]; then
echo "Error: could not find ${CC}"
set -eu
main() {
- [ "${CI_TARGET_BUILD}" = android ] && return 0
+ case "${CI_TARGET_BUILD}" in
+ android*)
+ return 0;;
+ esac
echo "Running long running tests..."
export PYTHONUNBUFFERED="TRUE"
}
main() {
- if [ "${CI_TARGET_BUILD}" = "android" ]; then
- echo "Installing Android NDK..."
- wget --quiet https://dl.google.com/android/repository/android-ndk-r24-linux.zip
- unzip -q android-ndk-r24-linux.zip
- return 0
- fi
+ case "${CI_TARGET_BUILD}" in
+ android*)
+ echo "Installing Android NDK..."
+ wget --quiet https://dl.google.com/android/repository/android-ndk-r24-linux.zip
+ unzip -q android-ndk-r24-linux.zip
+ return 0
+ ;;
+ esac
set_ci_target_os
set -eu
main() {
- [ "${CI_TARGET_BUILD}" = "android" ] && return 0
+ case "${CI_TARGET_BUILD}" in
+ android*)
+ return 0;;
+ esac
echo "Running smoke tests..."
make test