Integrated: Fix actions after version bump

Jorn Vernee jvernee at openjdk.org
Thu Apr 18 14:53:12 UTC 2024


On Thu, 18 Apr 2024 14:00:07 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> JDK bundles on different platforms have a different internal directory structure. We currently hard-code the path to the 'root' of the JDK (containing the `bin`/`lib`/`include` dirs, etc.) for each platform.
> 
> Recently the JDK version was bumped from 22 to 22.0.1, which changed the internal structure (since it includes the version in one of the directory names), thereby breaking our use of hard-coded paths.
> 
> This PR intends to fix this issue once and for all, by getting rid of the hard-coded paths. Instead, we try to find the `bin` folder within the downloaded package, and then copy the files from this discovered JDK root to a known location with a canonical path that is similar enough on each platform (this trick is borrowed from the mainline JDK GHA).

This pull request has now been integrated.

Changeset: 7fbd5c48
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/7fbd5c484c471b8ed16b9e4050f55c38840baae7
Stats:     20 lines in 1 file changed: 8 ins; 3 del; 9 mod

Fix actions after version bump

Reviewed-by: mcimadamore

-------------

PR: https://git.openjdk.org/jextract/pull/239


More information about the jextract-dev mailing list