From 6141a16c1bf573b5c39043059ae1c2a69a59edb0 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 26 Jul 2022 03:31:36 +0300 Subject: [PATCH] Add CI for Android --- .github/workflows/Build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 404938c..8023bd0 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -38,6 +38,40 @@ jobs: - name: cppcheck run: cppcheck --std=c++17 src/ + android: + name: Android + + runs-on: ubuntu-latest + + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 11 + cache: gradle + + - name: Cache cmake build + uses: actions/cache@v3 + with: + path: os/android/app/.cxx + key: android-cmake-v1 + + - name: Build + run: | + cd os/android + ./gradlew assembleDebug + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: fallout2-ce-debug.apk + path: os/android/app/build/outputs/apk/debug/app-debug.apk + retention-days: 7 + linux: name: Linux (${{ matrix.arch }})