From b8a6cab7164d6aa86e65b26a60d45bcd070bc5a2 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 4 Mar 2024 10:33:17 +0000 Subject: [PATCH] Don't pass -ea suffix into Gradle as the toolchain version See gh-39746 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc7f00713b3..6445bf8cc5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,8 @@ jobs: toolchain: false - version: 21 toolchain: true - - version: 22-ea + - version: 22 + early-access: true toolchain: true distribution: temurin exclude: @@ -36,7 +37,7 @@ jobs: with: distribution: ${{ matrix.java.distribution || 'liberica' }} java-version: | - ${{ matrix.java.version }} + ${{ matrix.java.early-access && format('{0}-ea', matrix.java.version) || matrix.java.version }} ${{ matrix.java.toolchain && '17' || '' }} - name: Prepare Windows runner if: ${{ runner.os == 'Windows' }}