diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml new file mode 100644 index 0000000..4a1922e --- /dev/null +++ b/.github/workflows/android-ci.yml @@ -0,0 +1,36 @@ +--- +name: Android CI + +'on': + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: '17' + cache: 'gradle' + + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + with: + api-levels: 34 + build-tools: '34.0.0' + + - name: Build Debug APK + run: ./gradlew assembleDebug + + - name: Upload Debug APK + uses: actions/upload-artifact@v4 + with: + name: app-debug-apk + path: app/build/outputs/apk/debug/app-debug.apk