Explicitly specify Java 17 #212
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 | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '00 2 * * 1' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Setup Java" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Get Gradle wrapper | |
working-directory: DailyDemo | |
run: gradle wrapper --gradle-version 8.4 | |
- name: Release build | |
working-directory: DailyDemo | |
run: ./gradlew assembleRelease | |
- name: Debug build | |
working-directory: DailyDemo | |
run: ./gradlew assembleDebug | |
- name: Upload built APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: demo-debug.apk | |
path: DailyDemo/app/build/outputs/apk/debug/app-debug.apk |