mirror of
https://gitea.com/actions/setup-java.git
synced 2026-07-09 19:22:05 +08:00
dist: Support Tencent Kona JDK (#672)
* Support Tencent Kona JDK (#672) Signed-off-by: John Jiang <johnsjiang@tencent.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Address Copilot review feedback for Kona distribution - Sort matching releases by semver descending so range versions (e.g. >=17) resolve to the newest matching Kona JDK instead of the lowest - Rename downloaded archive on Windows before extraction (renameWinArchive) to avoid extraction failures - Import semver for version sorting Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Signed-off-by: John Jiang <johnsjiang@tencent.com> Co-authored-by: Bruno Borges <brborges@microsoft.com> Co-authored-by: Bruno Borges <bruno.borges@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
25
src/distributions/kona/models.ts
Normal file
25
src/distributions/kona/models.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export interface IKonaReleaseInfo {
|
||||
[majorVersion: string]: {
|
||||
version: string;
|
||||
jdkVersion: string;
|
||||
latest: boolean;
|
||||
|
||||
baseUrl: string;
|
||||
files: {
|
||||
os: string; // linux, macos, windows
|
||||
arch: string; // x86_64, aarch64
|
||||
|
||||
filename: string;
|
||||
checksum: string;
|
||||
}[];
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface IKonaRelease {
|
||||
version: string;
|
||||
jdkVersion: string;
|
||||
os: string; // linux, macos, windows
|
||||
arch: string; // x86_64, aarch64
|
||||
downloadUrl: string;
|
||||
checksum: string; // SHA-256 digest
|
||||
}
|
||||
Reference in New Issue
Block a user