Skip to content

Commit c378e1f

Browse files
Fix Ci failure due to Java version (#9728) (#9747)
(cherry picked from commit 412e11b) Signed-off-by: Suchit Sahoo <suchsah@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8b71a6a commit c378e1f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build_and_test_workflow.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ jobs:
6868
- name: Checkout code
6969
uses: actions/checkout@v4
7070

71-
- name: Setup JDK (Windows only)
72-
if: matrix.os == 'windows-latest'
71+
- name: Setup JDK
7372
uses: actions/setup-java@v4
7473
with:
75-
java-version: '11'
74+
java-version: '21'
7675
distribution: 'adopt'
7776

7877
- name: Setup Node
@@ -232,11 +231,10 @@ jobs:
232231
- name: Checkout code
233232
uses: actions/checkout@v4
234233

235-
- name: Setup JDK (Windows only)
236-
if: matrix.os == 'windows-latest'
234+
- name: Setup JDK
237235
uses: actions/setup-java@v4
238236
with:
239-
java-version: '11'
237+
java-version: '21'
240238
distribution: 'adopt'
241239

242240
- name: Setup Node
@@ -349,11 +347,10 @@ jobs:
349347
- name: Checkout code
350348
uses: actions/checkout@v4
351349

352-
- name: Setup JDK (Windows only)
353-
if: matrix.os == 'windows-latest'
350+
- name: Setup JDK
354351
uses: actions/setup-java@v4
355352
with:
356-
java-version: '11'
353+
java-version: '21'
357354
distribution: 'adopt'
358355

359356
- name: Setup Node

0 commit comments

Comments
 (0)