Skip to content

Commit

Permalink
Use setup-gradle action (#217)
Browse files Browse the repository at this point in the history
This adds the [setup-gradle](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md) action which is officially maintained by gradle and is more efficient with caching.
  • Loading branch information
devinrsmith authored Oct 28, 2024
1 parent 603c219 commit 9124b70
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,41 @@ jobs:
with:
distribution: 'temurin'
java-version: '8'
cache: 'gradle'

- name: Setup JDK 11
id: setup-java-11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'

- name: Setup JDK 17
id: setup-java-17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: Setup JDK 21
id: setup-java-21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'

- name: Setup JDK 23
id: setup-java-23
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '23'
cache: 'gradle'

- name: Set JAVA_HOME
run: echo "JAVA_HOME=${{ steps.setup-java-21.outputs.path }}" >> $GITHUB_ENV

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Setup gradle properties
run: |
cat .github/env/${{ runner.os }}/gradle.properties >> gradle.properties
Expand Down

0 comments on commit 9124b70

Please sign in to comment.