Skip to content

feat(riscv64): add RISC-V build support to releases/v2.338.2 - #300

Merged
cbartz merged 2 commits into
releases/v2.338.2from
feat/riscv64-release-v2.338.2
Dec 4, 2026
Merged

cbartz merged 2 commits into
releases/v2.338.2from
feat/riscv64-release-v2.338.2

Conversation

@cbartz

@cbartz cbartz commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

What this PR does

Brings #294 (RISC-V build support) into releases/v2.338.2 as a cherry-pick of 0bd03873. The only conflict was .github/release-note-canonical.md, which this branch didn't have yet, so I took main's version.

Also fixes a problem that was already there: on release branches, build.yml applied the upstream-main patches to release source, so linux-arm failed and cancelled the other builds. The branch now uses the release patches (runner-sdk8-*) and has fail-fast: false, like main. The same patch fix for main is in #301.

Why we need it

releases/v2.338.2 was created before #294, so it can't build linux-riscv64. With ENABLE_RISCV64_BUILDS=true (set today), merging this PR triggers build.yml on the release branch. That build applies runner-sdk8-riscv64.patch (baseline v2.338.2) and uploads runner-package-linux-riscv64. The tarball then gets attached to the existing v2.338.2 release.

release.yml itself won't run: it only triggers on a releaseVersion change, and its check job refuses tags that already exist. Later release branches created by patch_update_release.yml include these changes automatically.

Checklist

Test plan

  • PR CI on this branch builds linux-riscv64 with the release patch, selected because GITHUB_BASE_REF is releases/*. Package tests are skipped on PRs, as usual.
  • After merge: the push build runs the RISC-V package checks (ELF architecture check and Node JIT hot loop under qemu). Then the tarball gets a smoke run on the K3 board before it's attached to the release.

Review focus

Check that the cherry-pick matches #294: git range-diff 0bd03873~1..0bd03873 origin/releases/v2.338.2..HEAD

Cherry-picked from 0bd0387 (#294) so the release branch can build the linux-riscv64 package.
Copilot AI lite review requested due to automatic review settings December 4, 2026 07:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The cross-compiled RISC-V toolchain and release path depend on unverified GitHub Actions runner metadata, external .NET and Node artifacts, QEMU/binfmt behavior, and release-asset upload handling. Native RISC-V execution and the first end-to-end release asset therefore still require validation on real hardware before relying on this experimental package.

No open issues 🎉

What changed in this PR

Adds opt-in Linux RISC-V 64 build and release support to releases/v2.338.2, including cross-compilation, validation, patch synchronization, and documentation.

Changes:

  • Adds RISC-V runner patches and architecture support.
  • Extends build and release workflows with gated cross-builds, checksums, and smoke tests.
  • Adds patch synchronization tests and operational documentation.
File Description
patches/​runner-sdk8-riscv64.patch Adds RISC-V support for the v2.338.2 runner source.
patches/​runner-main-sdk8-riscv64.patch Adds RISC-V support for the upstream main runner source.
patches/​patch-sync-l0.patch Adds workflow and patch-synchronization regression tests.
.github/​workflows/​release.yml Builds, validates, and publishes the RISC-V release artifact.
.github/​workflows/​patch_update_release.yml Synchronizes the RISC-V patch for release branches.
.github/​workflows/​patch_update_main.yml Synchronizes the RISC-V patch for the main branch.
.github/​workflows/​build.yml Adds opt-in RISC-V cross-build and package validation jobs.
.github/​release-note-canonical.md Documents RISC-V usage, build requirements, and operational limitations.

Review effort: Lite

@cbartz
cbartz merged commit 9820012 into releases/v2.338.2 Dec 4, 2026
3 of 9 checks passed
@cbartz
cbartz deleted the feat/riscv64-release-v2.338.2 branch December 4, 2026 07:21
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