Skip to content

Commit

Permalink
Update Java 22 specific test with GA version
Browse files Browse the repository at this point in the history
  • Loading branch information
gjwatts committed Mar 19, 2024
1 parent 31e8512 commit 42c008e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
java-version: [ '17', '18', '19', '20', '21', '22-ea' ]
java-version: [ '17', '18', '19', '20', '21', '22' ]

runs-on: ubuntu-latest

Expand All @@ -36,14 +36,14 @@ jobs:
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
distribution: 'oracle'

# This is the JDK gradle will use since gradle does not always support the -ea version
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '11'
distribution: 'temurin'
java-version: '17'
distribution: 'oracle'
cache: gradle

- name: Toolchain debug
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scripts/ClassVersionChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static void main(String[] args) throws IOException {
majorCodeMap.put("19", 63);
majorCodeMap.put("20", 64);
majorCodeMap.put("21", 65);
majorCodeMap.put("22", 66);

String filename = args[0];
int expected = majorCodeMap.get(args[1]);
Expand Down

0 comments on commit 42c008e

Please sign in to comment.