Open vlsi opened 9 months ago
It might probably make sense to have two output variables:
release
-- high level releaseversion
-- detailed versionIt probably makes sense to separate ea => 22; ga => 21
from the list of jdk.java.net-uri.properties
. In other words, the current implementation does not provide a way to tell which release stands for ea
.
For instance:
releases.ga=21
releases.ea=22
releases.jextract=21
releases.valhalla=21
An alternative option would be parsing filenames. For instance, openjdk-20-valhalla+20-75_windows-x64_bin.zip
apparently belongs to Java 20.
Currently,
outputs.version
is somewhat useless since it results in hashcode of the URI:=>
I guess the culprit is https://github.com/oracle-actions/setup-java/blob/afea155ec9ead9da533a803c03cb135f01e6a949/src/Download.java#L329
Note that
Math.abs(Integer.MIN_VALUE)
yeildsInteger.MIN_VALUE
, so you probably do not want usingMath.abs
for hash codes.I suggest using a release version instead, so the users could configure
release: ea
and then use the actual release (e.g. 22, 23, ...) in their build system configurations.I can't understand how could I use
release: ga
with the current action.