Merge branch 'Acclorite:master' into master #7
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 Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build apk and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
validate-wrappers: true | |
cache-cleanup: on-success | |
- name: Change wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Build Project with gradle | |
run: ./gradlew assembleDebug | |
# - name: Run Local Tests | |
# run: ./gradlew test | |
# - name: Lint Checks | |
# run: ./gradlew ktlintCheck | |
# Upload all build artifacts in separate steps. This can be shortened once https://github.com/actions/upload-artifact/pull/354 is merged. | |
- name: Upload artifact book-debug.apk | |
uses: actions/upload-artifact@v4 | |
with: | |
name: book-universal-debug.apk | |
path: ./app/build/outputs/apk/debug/app-debug.apk | |
# - name: Upload build reports | |
# if: always() | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: build-reports | |
# path: app/build/reports |