merge #77
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 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: full-debug-apk | |
path: app/build/outputs/apk/full/debug/app-full-debug.apk | |
- name: Upload Lite Debug APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lite-debug-apk | |
path: app/build/outputs/apk/lite/debug/app-lite-debug.apk |