Skip to content

feat: add loong64 (LoongArch) build support - #13642

Merged
fuweid merged 1 commit into
containerd:mainfrom
xuxiaowei-com-cn:feat/add-loong64-support
Jul 7, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
xuxiaowei-com-cn:feat/add-loong64-support

Conversation

@xuxiaowei-com-cn

@xuxiaowei-com-cn xuxiaowei-com-cn commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

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

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

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.

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=pie for loong64, matching existing handling for other architectures.
  • Add linux/loong64 to the CI crossbuild matrix (with CGO_ENABLED=0) and to nightly build + artifact uploads.
  • Add linux/loong64 to 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.

Copilot AI review requested due to automatic review settings June 22, 2026 19:25

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/release.yml Resolved

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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/ci.yml Resolved
@AkihiroSuda

Copy link
Copy Markdown
Member

Please squash the commits

@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from 5e2ae9f to 0826db1 Compare June 24, 2026 07:06
@xuxiaowei-com-cn

Copy link
Copy Markdown
Contributor Author

Please squash the commits

Processing has been completed.

@AkihiroSuda

Copy link
Copy Markdown
Member

Please squash the commits

Processing has been completed.

Doesn't seem completed

@xuxiaowei-com-cn

Copy link
Copy Markdown
Contributor Author

Please squash the commits

Processing has been completed.

Doesn't seem completed

I might have misunderstood earlier; I was actually doing a git rebase.

@fuweid

fuweid commented Jul 6, 2026

Copy link
Copy Markdown
Member

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

Copilot AI review requested due to automatic review settings July 6, 2026 14:39
@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from 0826db1 to dc2c50a Compare July 6, 2026 14:39
@xuxiaowei-com-cn

Copy link
Copy Markdown
Contributor Author

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

Completed

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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@samuelkarp

Copy link
Copy Markdown
Member

Please update the table in RELEASES.md. Squash this into the single commit you already have (no need for a separate commit).

@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from dc2c50a to 3f59ef3 Compare July 6, 2026 17:29
Copilot AI review requested due to automatic review settings July 6, 2026 17:30
@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from 3f59ef3 to 9a730c2 Compare July 6, 2026 17:30
@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from 9a730c2 to a773c92 Compare July 6, 2026 17:32

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 6, 2026 17:32

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@xuxiaowei-com-cn

Copy link
Copy Markdown
Contributor Author

Please update the table in RELEASES.md. Squash this into the single commit you already have (no need for a separate commit).

Completed

Comment thread RELEASES.md Resolved
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]>
@xuxiaowei-com-cn
xuxiaowei-com-cn force-pushed the feat/add-loong64-support branch from a773c92 to 48c841f Compare July 6, 2026 17:43
@kubernetes-prow kubernetes-prow Bot added size/XS and removed size/S labels Jul 6, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 7, 2026
@fuweid
fuweid added this pull request to the merge queue Jul 7, 2026
Merged via the queue into containerd:main with commit bed403a Jul 7, 2026
91 of 94 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for LoongArch (loong64) architecture

6 participants