Skip to content

Commit d99638e

Browse files
8Keepstephengold
andauthored
Add java 21 to CI, start deploying with java 21 (#2292)
Co-authored-by: Stephen Gold <[email protected]>
1 parent 5248fb0 commit d99638e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
name: android-natives
8383
path: build/native
8484

85-
# Build the engine, we only deploy from ubuntu-latest jdk17
85+
# Build the engine, we only deploy from ubuntu-latest jdk21
8686
BuildJMonkey:
8787
needs: [BuildAndroidNatives]
8888
name: Build on ${{ matrix.osName }} jdk${{ matrix.jdk }}
@@ -91,7 +91,7 @@ jobs:
9191
fail-fast: false
9292
matrix:
9393
os: [ubuntu-latest,windows-latest,macOS-latest]
94-
jdk: [11, 17]
94+
jdk: [11, 17, 21]
9595
include:
9696
- os: ubuntu-latest
9797
osName: linux
@@ -104,6 +104,8 @@ jobs:
104104
deploy: false
105105
- jdk: 11
106106
deploy: false
107+
- jdk: 17
108+
deploy: false
107109

108110
steps:
109111
- name: Clone the repo
@@ -304,12 +306,12 @@ jobs:
304306
with:
305307
fetch-depth: 1
306308

307-
# Setup jdk 17 used for building Maven-style artifacts
309+
# Setup jdk 21 used for building Maven-style artifacts
308310
- name: Setup the java environment
309311
uses: actions/setup-java@v4
310312
with:
311313
distribution: 'temurin'
312-
java-version: '17'
314+
java-version: '21'
313315

314316
- name: Download natives for android
315317
uses: actions/download-artifact@master
@@ -348,12 +350,12 @@ jobs:
348350
with:
349351
fetch-depth: 1
350352

351-
# Setup jdk 17 used for building Sonatype OSSRH artifacts
353+
# Setup jdk 21 used for building Sonatype OSSRH artifacts
352354
- name: Setup the java environment
353355
uses: actions/setup-java@v4
354356
with:
355357
distribution: 'temurin'
356-
java-version: '17'
358+
java-version: '21'
357359

358360
# Download all the stuff...
359361
- name: Download maven artifacts

0 commit comments

Comments
 (0)