From df5fa514a2aeffdc8a23b31d7b67fa54ce789ced Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 28 Aug 2026 11:08:14 -0500 Subject: [PATCH] ci: add Android build workflow for debug APK and release AAB --- .gitea/workflows/android-build.yml | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .gitea/workflows/android-build.yml diff --git a/.gitea/workflows/android-build.yml b/.gitea/workflows/android-build.yml new file mode 100644 index 0000000..66e0b96 --- /dev/null +++ b/.gitea/workflows/android-build.yml @@ -0,0 +1,50 @@ +name: Android build + +on: + push: + branches: + - '**' + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 45 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Java 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + cache: gradle + + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + + - name: Make Gradle wrapper executable + run: chmod +x gradlew + + - name: Build debug APK + run: ./gradlew --no-daemon clean assembleDebug + + - name: Build release AAB + run: ./gradlew --no-daemon bundleRelease + + - name: Upload debug APK + uses: actions/upload-artifact@v4 + with: + name: debug-apk + path: app/build/outputs/apk/debug/*.apk + if-no-files-found: error + + - name: Upload release AAB + uses: actions/upload-artifact@v4 + with: + name: release-aab + path: app/build/outputs/bundle/release/*.aab + if-no-files-found: error