-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Prepare build for JDK24+ #1666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare build for JDK24+ #1666
Conversation
matthiasblaesing
commented
Apr 22, 2025
- enable running CI/CD matrix on JDK24 (dropping JDK23 for this)
- adjust build script to set parameters so that unittests run without warnings from native access
- enable running CI/CD matrix on JDK24 (dropping JDK23 for this) - adjust build script to set parameters so that unittests run without warnings from native access
.github/workflows/ci.yaml
Outdated
@@ -16,7 +16,7 @@ jobs: | |||
runs-on: ${{ matrix.os }} | |||
strategy: | |||
matrix: | |||
java: [8, 11, 17, 21, 23] | |||
java: [8, 11, 17, 21, 24] | |||
# macos-13 is x86, macos-latest is aarch64 | |||
os: [ubuntu-latest, macos-13, macos-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're updating the matrix, a few things:
- We should consider adding ubuntu-24.04-arm to get ARM coverage on Linux. (The macos-latest gets Apple Silicon while -13 is x86.) See https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
- We might consider defining some combinations to cover all JDKs and all OS platforms without doing every possible combination (4 x 5 = 20). All OS's combos on the latest JDK seems sane but maybe spread the 4 other JDKs over 4 os's for a total of 8 runs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
- java: [8, 21, 24]
- os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, maxos-13]
Idea here:
- cover the lower end of the supported spectrum (JDK 8)
- cover the current LTS
- cover the current Java version
At this point in time, I don't see many things breaking on JDK 11/17, that will work both on JDK 8 and 21.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. That makes sense.
- cover the lower end of the supported spectrum (JDK 8) - cover the current java LTS - cover the current Java version on - linux x86-64 - linux aarch64 - mac OS x86-64 - mac OS aarch64 Fixing the number of tests to 12.
@dbwiddis thanks. |