From 731f7c0d952572a5bc7e2cac82f5a8012cb51290 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 8 Apr 2021 10:40:04 +0200 Subject: [PATCH] Add Android builds to CI --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88b50378..f2904a1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,3 +123,28 @@ jobs: env CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking --host=powerpc-linux-gnu make -j $(nproc) make clean > /dev/null + + android: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Update packages list + run: sudo apt-get update + + - name: Install base dependencies + run: sudo apt-get install -y libtool autoconf automake unzip + + - name: Autogen + run: ./autogen.sh -s + + - name: Install Android NDK + run: | + mkdir /tmp/android && cd /tmp/android + curl -o ndk.zip -L https://dl.google.com/android/repository/android-ndk-r23-beta2-linux-x86_64.zip + unzip ndk.zip && rm -f *.zip && mv android-ndk* ndk + + - name: Android compilation + run: | + env ANDROID_NDK_HOME=/tmp/android/ndk ./dist-build/android-x86.sh + env ANDROID_NDK_HOME=/tmp/android/ndk ./dist-build/android-armv8-a.sh