Merge pull request #34 from trindadedev13/main #188
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Give permission to executable | |
run: chmod +x gradlew | |
- name: Clear build cache | |
uses: gradle/gradle-build-action@v3.1.0 | |
with: | |
gradle-version: nightly | |
arguments: clean | |
- name: Build Full Flavor with Gradle | |
run: ./gradlew assembleFullDebug | |
- name: Build Lite Flavor with Gradle | |
run: ./gradlew assembleLiteDebug | |
- name: Upload Full Debug APK (arm64-v8a) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: full-debug-apk-arm64-v8a | |
path: app/build/outputs/apk/full/debug/app-full-arm64-v8a-debug.apk | |
- name: Upload Full Debug APK (armeabi-v7a) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: full-debug-apk-armeabi-v7a | |
path: app/build/outputs/apk/full/debug/app-full-armeabi-v7a-debug.apk | |
- name: Upload Full Debug APK (x86) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: full-debug-apk-x86 | |
path: app/build/outputs/apk/full/debug/app-full-x86-debug.apk | |
- name: Upload Full Debug APK (x86_64) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: full-debug-apk-x86_64 | |
path: app/build/outputs/apk/full/debug/app-full-x86_64-debug.apk | |
- name: Upload Full Debug APK (universal) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: full-debug-apk-universal | |
path: app/build/outputs/apk/full/debug/app-full-universal-debug.apk | |
- name: Upload Lite Debug APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lite-debug-apk | |
path: app/build/outputs/apk/lite/debug/app-lite-universal-debug.apk |