Repository navigation
feat(riscv64): add RISC-V build support to releases/v2.338.2 - #300
Merged
Merged
Conversation
1 task done
There was a problem hiding this comment.
🔵 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Brings #294 (RISC-V build support) into
releases/v2.338.2as a cherry-pick of0bd03873. 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.ymlapplied 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 hasfail-fast: false, like main. The same patch fix for main is in #301.Why we need it
releases/v2.338.2was created before #294, so it can't buildlinux-riscv64. WithENABLE_RISCV64_BUILDS=true(set today), merging this PR triggersbuild.ymlon the release branch. That build appliesrunner-sdk8-riscv64.patch(baselinev2.338.2) and uploadsrunner-package-linux-riscv64. The tarball then gets attached to the existing v2.338.2 release.release.ymlitself won't run: it only triggers on areleaseVersionchange, and itscheckjob refuses tags that already exist. Later release branches created bypatch_update_release.ymlinclude these changes automatically.Checklist
Test plan
linux-riscv64with the release patch, selected becauseGITHUB_BASE_REFisreleases/*. Package tests are skipped on PRs, as usual.Review focus
Check that the cherry-pick matches #294:
git range-diff 0bd03873~1..0bd03873 origin/releases/v2.338.2..HEAD