diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c26e63f62a24..18878f306000 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -217,9 +217,11 @@ jobs: 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 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 run: mkdir -p ~/.gradle && echo "org.gradle.java.home=$JAVA_HOME_21_X64" >> ~/.gradle/gradle.properties