Repository navigation
feat: add loong64 (LoongArch) build support - #13642
Conversation
641f461 to
fad0baa
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds linux/loong64 (LoongArch) as a first-class build target across the project’s build system and GitHub Actions workflows, extending cross-build CI, nightly artifacts, and release build matrices to produce LoongArch binaries.
Changes:
- Update Linux build flags to avoid
-buildmode=pieforloong64, matching existing handling for other architectures. - Add
linux/loong64to the CI crossbuild matrix (withCGO_ENABLED=0) and to nightly build + artifact uploads. - Add
linux/loong64to the release build matrix to generate release artifacts for that platform.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Makefile.linux |
Excludes loong64 from PIE buildmode selection logic for Linux builds. |
.github/workflows/ci.yml |
Extends the crossbuild matrix to compile for linux/loong64 with CGO_ENABLED=0. |
.github/workflows/nightly.yml |
Adds nightly loong64 build step and uploads linux_loong64 artifacts. |
.github/workflows/release.yml |
Adds linux/loong64 to the release build matrix to produce release tarballs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dbd8e4c to
63e2edb
Compare
cc685fe to
5e2ae9f
Compare
|
Please squash the commits |
5e2ae9f to
0826db1
Compare
Processing has been completed. |
Doesn't seem completed |
I might have misunderstood earlier; I was actually doing a git rebase. |
This change doesn't need 3 commits. Please squash it into one commit. thanks |
0826db1 to
dc2c50a
Compare
Completed |
|
Please update the table in RELEASES.md. Squash this into the single commit you already have (no need for a separate commit). |
dc2c50a to
3f59ef3
Compare
3f59ef3 to
9a730c2
Compare
9a730c2 to
a773c92
Compare
Completed |
Add loong64 (LoongArch) architecture support to the build system and CI: - Makefile.linux: add loong64 to architectures that don't use -buildmode=pie (consistent with other non-amd64 architectures like mips, ppc64) - ci.yml: add linux/loong64 to crossbuild matrix with CGO_ENABLED=0 - RELEASES.md: add linux/loong64 as Tier 3 (Build-verified) platform The linux/loong64 release build and nightly build entries are intentionally excluded — the cross-compilation toolchain is not yet available in Ubuntu 22.04 apt repositories (no crossbuild-essential-loong64 package). The crossbuild CI check uses CGO_ENABLED=0. Nightly and release builds will be re-enabled once the upstream tonistiigi/xx base image provides the loong64 cross-compilation toolchain. Go has supported GOARCH=loong64 as a first-class port since Go 1.21. The seccomp default profile already includes loong64 support (contrib/seccomp). Tracked by: containerd#13641 Signed-off-by: 徐晓伟 <[email protected]>
a773c92 to
48c841f
Compare
Add loong64 (LoongArch) architecture support to the build system and CI:
(consistent with other non-amd64 architectures like mips, ppc64)
loong64 nightly and release builds are intentionally excluded until the
cross-compilation toolchain becomes available in Ubuntu 22.04 apt repositories
(no crossbuild-essential-loong64 package). These will be re-enabled once the
upstream tonistiigi/xx base image provides the loong64 cross-compilation
toolchain.
Go has supported GOARCH=loong64 as a first-class port since Go 1.21.
The seccomp default profile already includes loong64 support (contrib/seccomp).
Fixes: #13641