Skip to content

Commit

Permalink
CI: build and test on JDK 24-ea
Browse files Browse the repository at this point in the history
 - java hints job remains on 23 and has to wait for nb-javac 24
  • Loading branch information
mbien committed Nov 17, 2024
1 parent 7a33387 commit 0379ee9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
timeout-minutes: 40
strategy:
matrix:
java: [ '17', '21', '23' ]
java: [ '17', '21', '24-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
java: [ 17 ]
include:
- os: ubuntu-latest
java: 22
java: 24-ea
fail-fast: false
steps:

Expand Down Expand Up @@ -417,11 +417,11 @@ jobs:
run: ant $OPTS build-nbms

# 13-14 min for javadoc; JDK version must be synced with nb-javac
- name: Set up JDK 23 for javadoc
- name: Set up JDK 24-ea for javadoc
if: env.test_javadoc == 'true' && success()
uses: actions/setup-java@v4
with:
java-version: 23
java-version: 24-ea
distribution: ${{ env.DEFAULT_JAVA_DISTRIBUTION }}

- name: Build javadoc
Expand Down Expand Up @@ -834,7 +834,7 @@ jobs:
timeout-minutes: 50
strategy:
matrix:
java: [ '17', '21', '23' ]
java: [ '17', '21', '24-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down Expand Up @@ -1494,7 +1494,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
java: [ '17', '21', '23' ]
java: [ '17', '21', '24-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void testLockFile() throws IOException {
expectedCount++;
// sun.awt.PlatformGraphicsInfo.getDefaultHeadlessProperty probes a .so or .dylib
// Runtime.version().feature() > 18
if (Integer.parseInt(System.getProperty("java.version").split("\\.")[0]) > 18) {
if (Integer.parseInt(System.getProperty("java.version").split("\\.")[0].split("-")[0]) > 18) {
expectedCount++;
}
}
Expand Down

0 comments on commit 0379ee9

Please sign in to comment.