Use Java 17 during jitpack publication #135
Workflow file for this run
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
jvm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2.2.2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Configure JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Assemble and test | |
run: ./gradlew build --stacktrace | |
android: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2.2.2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Configure JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Run all device checks | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
script: ./gradlew connectedCheck --stacktrace |