mirror of
https://gh-proxy.com/github.com/actions/setup-java.git
synced 2026-10-03 02:56:04 +08:00
Support Temurin on Linux RISC-V (#1269)
* Document Temurin RISC-V compatibility Co-Authored-By: multicode <multicode@yawk.at> * Expose RISC-V as a canonical architecture Co-Authored-By: multicode <multicode@yawk.at> * Support Temurin on Linux RISC-V Co-Authored-By: multicode <multicode@yawk.at> * Address RISC-V review feedback Co-Authored-By: multicode <multicode@yawk.at> * Fix casing for RISC-V architecture in tests Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update __tests__/java-platform-contract.test.ts --------- Co-authored-by: multicode <multicode@yawk.at> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
multicode
Copilot Autofix powered by AI
parent
1aa87b638d
commit
97c5a5e13a
@@ -5,7 +5,14 @@ import {JavaDistribution} from './package-types.js';
|
||||
export type JavaPlatform = 'linux' | 'macos' | 'windows' | 'solaris';
|
||||
|
||||
export type JavaArchitecture =
|
||||
'x86' | 'x64' | 'armv7' | 'aarch64' | 'ppc64le' | 'ppc64' | 's390x';
|
||||
| 'x86'
|
||||
| 'x64'
|
||||
| 'armv7'
|
||||
| 'aarch64'
|
||||
| 'ppc64le'
|
||||
| 'ppc64'
|
||||
| 'riscv64'
|
||||
| 's390x';
|
||||
|
||||
interface VersionedArchitecture {
|
||||
architecture: JavaArchitecture;
|
||||
@@ -27,7 +34,14 @@ export type JavaPlatformCapability =
|
||||
RestrictedPlatformCapability | UnrestrictedPlatformCapability;
|
||||
|
||||
const X64_ARM64 = ['x64', 'aarch64'] as const;
|
||||
const STANDARD_LINUX = ['x64', 'x86', 'aarch64', 'ppc64le', 's390x'] as const;
|
||||
const STANDARD_LINUX = [
|
||||
'x64',
|
||||
'x86',
|
||||
'aarch64',
|
||||
'ppc64le',
|
||||
'riscv64',
|
||||
's390x'
|
||||
] as const;
|
||||
|
||||
export const JAVA_PLATFORM_CAPABILITIES: Record<
|
||||
JavaDistribution,
|
||||
@@ -174,6 +188,7 @@ const CANONICAL_ARCHITECTURES: readonly JavaArchitecture[] = [
|
||||
'aarch64',
|
||||
'ppc64le',
|
||||
'ppc64',
|
||||
'riscv64',
|
||||
's390x'
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user