Build debug apk #25
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: Build debug apk | |
on: | |
workflow_dispatch | |
jobs: | |
pre_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11.0.14+101' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permissions for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
build_apk: | |
needs: [pre_build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Grant execute permissions for gradlew | |
run: chmod +x gradlew | |
- name: Build unsigned debug apk | |
run: ./gradlew assembleDebug | |
- name: Upload debug apk | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk-debug | |
path: app/build/outputs/apk/debug |