Skip to content

Commit 4c6dec3

Browse files
committed
workflows: test on both minimum and latest Java
It should be safe to generate the dist jar with the latest Java, but just to be sure, continue using Java 22. setup-java doesn't provide an alias for the latest Java release, so specify it by version. Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
1 parent 10d2cf3 commit 4c6dec3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/java.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
22+
java: [22, 23]
2223
include:
2324
- os: ubuntu-latest
25+
java: 22
2426
dist: dist
2527
defaults:
2628
run:
@@ -32,7 +34,7 @@ jobs:
3234
uses: actions/setup-java@v4
3335
with:
3436
distribution: oracle
35-
java-version: 22
37+
java-version: ${{ matrix.java }}
3638
cache: maven
3739
- name: Install dependencies (Linux)
3840
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)