Skip to content

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

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

matthiasblaesing
Copy link
Member

  • 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
@@ -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]
Copy link
Contributor

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:

  1. 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
  2. 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?

Copy link
Member Author

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.

Copy link
Contributor

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.
@matthiasblaesing
Copy link
Member Author

@dbwiddis thanks.

@matthiasblaesing matthiasblaesing merged commit 3a8677e into java-native-access:master Apr 23, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants