Skip to content

feat: add RISC-V 64-bit platform support#46

Open
gounthar wants to merge 1 commit intosdkman:mainfrom
gounthar:feat/add-riscv64-platform
Open

feat: add RISC-V 64-bit platform support#46
gounthar wants to merge 1 commit intosdkman:mainfrom
gounthar:feat/add-riscv64-platform

Conversation

@gounthar
Copy link

@gounthar gounthar commented Feb 7, 2026

Summary

  • Add LINUX_RISCV64 to the Platform enum
  • Map ("linux", "riscv64") to Platform.LINUX_RISCV64 in Release and to "linuxriscv64" in Broker
  • Add riscv64 architecture entries in application.properties for Temurin and Liberica (the two vendors currently shipping riscv64 JDKs)

Details

Both Temurin (JDK 21-25) and Liberica (JDK 17-25) publish riscv64 Linux JDK builds. The Disco API already serves these packages (confirmed by the Disco API maintainer and verified via curl). This PR adds the platform mapping so that disco-integration can fetch and forward them to the SDKMAN database.

All 20 existing tests pass with no changes.

Closes #45

Test plan

  • All existing tests pass (20/20, 0 failures)
  • Verify LINUX_RISCV64 enum follows existing naming convention (LINUX_ prefix + architecture)
  • Verify linuxriscv64 broker string matches sdkman-cli platform descriptor from feat: add RISC-V 64-bit platform support sdkman-cli#1496
  • Confirm riscv64 is the architecture key the Disco API uses (verified: it does)

Add riscv64 platform mapping across the disco-integration bridge:

- Platform enum: add LINUX_RISCV64
- Release: map (linux, riscv64) -> LINUX_RISCV64
- Broker: map (linux, riscv64) -> linuxriscv64
- application.properties: add riscv64 entries for Temurin and Liberica

Both vendors already publish riscv64 JDKs. The Disco API support
(foojayio/discoapi#112) is pending; once deployed, these entries
will activate automatically.

Closes sdkman#45

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RISC-V 64-bit (riscv64) platform support

1 participant