From fb4b0c111d49f87a63e6591310139ce67156d3d4 Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Sat, 4 Apr 2026 09:45:47 -0400 Subject: [PATCH 1/4] CI: use direct URI for JDK 27 EA builds --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c26e63f62a24..bd2a4dcaa321 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,10 +216,10 @@ jobs: if: ${{ matrix.java.version == 'EA' }} uses: oracle-actions/setup-java@v1 with: - # Install the requested EA JDK second, to make it the default on which everything else runs. - website: jdk.java.net - release: ${{ env.JDK_EA_MAJOR }} - version: ${{ format('{0}-ea+{1}', env.JDK_EA_MAJOR, env.JDK_EA_BUILD) }} + # Pin the archive URI directly because oracle-actions/setup-java's resolver + # drops older EA builds from jdk.java.net-uri.properties. + uri: ${{ format('https://download.java.net/java/early_access/jdk{0}/{1}/GPL/openjdk-{0}-ea+{1}_linux-x64_bin.tar.gz', env.JDK_EA_MAJOR, env.JDK_EA_BUILD) }} + install-as-version: ${{ env.JDK_EA_MAJOR }} - name: Inject JAVA_HOME_21_64 into `gradle.properties` to always use JDK 21 for Gradle run: mkdir -p ~/.gradle && echo "org.gradle.java.home=$JAVA_HOME_21_X64" >> ~/.gradle/gradle.properties From ac1f1031b18577228f75a0cf214ce233df7aaa09 Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Sat, 4 Apr 2026 10:55:25 -0400 Subject: [PATCH 2/4] CI: rerun EA URI test From 8c3a53ea8eb216326c95b2c60e5531c274b3a277 Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Sat, 4 Apr 2026 13:56:11 -0400 Subject: [PATCH 3/4] CI: keep URI comment concise --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd2a4dcaa321..84039f6893b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,8 +216,7 @@ jobs: if: ${{ matrix.java.version == 'EA' }} uses: oracle-actions/setup-java@v1 with: - # Pin the archive URI directly because oracle-actions/setup-java's resolver - # drops older EA builds from jdk.java.net-uri.properties. + # Pin EA builds by direct archive URI. uri: ${{ format('https://download.java.net/java/early_access/jdk{0}/{1}/GPL/openjdk-{0}-ea+{1}_linux-x64_bin.tar.gz', env.JDK_EA_MAJOR, env.JDK_EA_BUILD) }} install-as-version: ${{ env.JDK_EA_MAJOR }} - name: Inject JAVA_HOME_21_64 into `gradle.properties` to always use JDK 21 for Gradle From a8c3a616ed592611ba0774cf947c179d66b15d30 Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Sat, 4 Apr 2026 16:05:42 -0400 Subject: [PATCH 4/4] Add more documentation --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84039f6893b9..18878f306000 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,7 +216,10 @@ jobs: if: ${{ matrix.java.version == 'EA' }} uses: oracle-actions/setup-java@v1 with: + # Install the requested EA JDK second, to make it the default on which everything else runs. # Pin EA builds by direct archive URI. + # If the URI stops working, check for the updated pattern here: + # https://github.com/oracle-actions/setup-java/blob/main/jdk.java.net-uri.properties uri: ${{ format('https://download.java.net/java/early_access/jdk{0}/{1}/GPL/openjdk-{0}-ea+{1}_linux-x64_bin.tar.gz', env.JDK_EA_MAJOR, env.JDK_EA_BUILD) }} install-as-version: ${{ env.JDK_EA_MAJOR }} - name: Inject JAVA_HOME_21_64 into `gradle.properties` to always use JDK 21 for Gradle