use arm64 images for github macos runners #424
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: | |
branches: [ "master" ] | |
jobs: | |
# this job builds and uploads the apk | |
build_the_apk: | |
# there's no need to run it on forks | |
if: github.repository == 'spacecowboy/NotePad' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: perform the checkout | |
uses: actions/checkout@v4 | |
- name: perform the validation | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: perform the JDK setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: perform Gradle caching | |
uses: gradle/actions/setup-gradle@v3 | |
- name: perform the Gradle build | |
run: ./gradlew build | |
- name: perform additional checks with our custom tasks | |
run: ./gradlew checkLanguages checkFastlane | |
# TODO output files from this step are not saved. Take a look at them | |
- name: perform lint checks with gradle | |
run: ./gradlew lint | |
- name: perform the APK upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app_debug | |
path: app/build/outputs/apk/debug/app-debug.apk | |
retention-days: 7 # we're not publishing the app: nobody needs this apk |