From c24a431c960930d7f53d2ef2184d66c7129f316e Mon Sep 17 00:00:00 2001 From: Yury Popov Date: Thu, 17 Nov 2022 19:34:59 +0300 Subject: [PATCH] ci: add Android --- .github/workflows/android.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000..a58e1b7a --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,36 @@ +name: Android + +on: + workflow_dispatch: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: [debug, release] + include: + - config: debug + apkname: espeak-debug.apk + - config: release + apkname: espeak-release-unsigned.apk + name: Build ${{ matrix.config }} APK + steps: + - uses: actions/checkout@v3 + - name: autoconf + run: ./autogen.sh ; chmod -x INSTALL m4/*.m4 + - name: configure + run: ./configure --with-gradle=$(pwd)/android/gradlew + - name: make + run: make apk-${{ matrix.config }} + - name: upload + uses: actions/upload-artifact@v3 + with: + name: android-${{ matrix.config }}.apk + path: android/build/outputs/apk/${{ matrix.config }}/${{ matrix.apkname }} + retention-days: 5