From 8792961f2bb121b0197bc3a04324a6dfb0736cfc Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Mon, 28 Oct 2024 11:59:52 -0700 Subject: [PATCH 1/3] Use setup-gradle action 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. --- .github/workflows/check.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c3d5bb7b..0aa75dd1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -25,7 +25,6 @@ jobs: with: distribution: 'temurin' java-version: '8' - cache: 'gradle' - name: Setup JDK 11 id: setup-java-11 @@ -33,7 +32,6 @@ jobs: with: distribution: 'temurin' java-version: '11' - cache: 'gradle' - name: Setup JDK 17 id: setup-java-17 @@ -41,7 +39,6 @@ jobs: with: distribution: 'temurin' java-version: '17' - cache: 'gradle' - name: Setup JDK 21 id: setup-java-21 @@ -49,7 +46,9 @@ jobs: with: distribution: 'temurin' java-version: '21' - cache: 'gradle' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Set JAVA_HOME run: echo "JAVA_HOME=${{ steps.setup-java-21.outputs.path }}" >> $GITHUB_ENV From 8423da3e96d058e846eb5b48288e2a100ed7642f Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Mon, 28 Oct 2024 12:03:37 -0700 Subject: [PATCH 2/3] move to correct place --- .github/workflows/check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a4130ce5..da628039 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -47,9 +47,6 @@ jobs: distribution: 'temurin' java-version: '21' - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 - - name: Setup JDK 23 id: setup-java-23 uses: actions/setup-java@v4 @@ -61,6 +58,9 @@ jobs: - 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 From 20fc2785526525a865730e07cb4df1da897f3cef Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Mon, 28 Oct 2024 12:24:12 -0700 Subject: [PATCH 3/3] remove cache from 23 --- .github/workflows/check.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index da628039..1c091bdb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -53,7 +53,6 @@ jobs: with: distribution: 'temurin' java-version: '23' - cache: 'gradle' - name: Set JAVA_HOME run: echo "JAVA_HOME=${{ steps.setup-java-21.outputs.path }}" >> $GITHUB_ENV