Skip to content

Support Temurin on Linux RISC-V - #1269

Open
yawkat wants to merge 3 commits into
actions:mainfrom
yawkat:fix/temurin-riscv64
Open

Support Temurin on Linux RISC-V#1269
yawkat wants to merge 3 commits into
actions:mainfrom
yawkat:fix/temurin-riscv64

Conversation

@yawkat

@yawkat yawkat commented Sep 12, 2026

Copy link
Copy Markdown

Description:
Add riscv64 as a canonical architecture and allow Temurin distributions to use it on Linux.

setup-java v5 forwarded the runner architecture to Adoptium and successfully installed Temurin on RISC-V. The centralized platform validation added in v6 currently rejects the same configuration before reaching the Temurin catalog, even though Adoptium publishes Linux riscv64 JDK and JRE artifacts.

This change:

  • adds riscv64 to the canonical architecture contract;
  • enables it only for Temurin on Linux;
  • verifies case normalization, platform validation, and Adoptium query pass-through;
  • updates the action metadata and compatibility documentation; and
  • regenerates dist/setup/index.js.

Related issue:
yawkat/lz4-java#87

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
  • Documentation changes are included.
  • Tests were added or updated to cover the changes.

yawkat and others added 3 commits September 12, 2026 02:33
Co-Authored-By: multicode <multicode@yawk.at>
Co-Authored-By: multicode <multicode@yawk.at>
Co-Authored-By: multicode <multicode@yawk.at>
Copilot AI lite review requested due to automatic review settings September 12, 2026 02:35
@yawkat
yawkat requested a review from a team as a code owner September 12, 2026 02:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Adds Linux riscv64 support for Temurin by updating architecture validation, documentation, tests, metadata, and the bundled runtime.

Changes:

  • Adds canonical riscv64 support for Temurin on Linux.
  • Updates compatibility documentation and action metadata.
  • Adds coverage for normalization, validation, and Adoptium pass-through.
File summaries
File Description
src/distributions/platform-types.ts Adds canonical and Temurin Linux riscv64 support.
README.md Documents riscv64 as a canonical architecture.
docs/advanced-usage.md Updates the compatibility matrix.
dist/setup/index.js Regenerates the runtime bundle.
action.yml Updates architecture input metadata.
__tests__/java-platform-contract.test.ts Tests normalization and validation.
__tests__/distributors/temurin-installer.test.ts Tests Adoptium architecture pass-through.
Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yawkat

yawkat commented Sep 12, 2026

Copy link
Copy Markdown
Author

@luhenry PTAL as well, since you worked on lz4-java RISC-V support

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.

3 participants