Skip to content

Explicitly specify Java 17 #212

Explicitly specify Java 17

Explicitly specify Java 17 #212

Workflow file for this run

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