RFR: Fix actions after version bump
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu Apr 18 14:41:09 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).
Marked as reviewed by mcimadamore (Reviewer).
-------------
PR Review: https://git.openjdk.org/jextract/pull/239#pullrequestreview-2009103094
More information about the jextract-dev
mailing list