Skip to content

[WIP] Add linux-arm64 support to NuGet package - #7085

Closed
ericstj with Copilot wants to merge 1 commit into
masterfrom
copilot/add-linux-arm64-support
Closed

ericstj with Copilot wants to merge 1 commit into
masterfrom
copilot/add-linux-arm64-support

Conversation

Copilot AI commented Nov 19, 2025

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Add linux-arm64 support to NuGet package

This change adds Linux arm64 binaries to the NuGet packaging, enabling native support for arm64. The following enhancements are included:

.ci/create-nuget.py

  • Add artifact copy for lib_lightgbm.so targeting linux-arm64 by:
    • Creating the folder runtimes/linux-arm64/native.
    • Copying arm64 build output (e.g., lib_lightgbm.so from the arm64 build) to this folder.
  • Update MSBuild props/targets generated logic to:
    • Reference arm64 artifacts where relevant in conditions or platform checks.
    • Ensure warnings/errors around architecture are revised to include arm64 as a supported platform.

.vsts-ci.yml

  • Add Linux arm64 build job.
    • Use an appropriate arm64 build container (such as Ubuntu or manylinux for aarch64).
    • Ensure artifact staging includes arm64 binary as lib_lightgbm.so or similar recognizable naming.
  • Pass built arm64 artifact to NuGet packaging job.
  • Update artifact collection and publish steps to ensure inclusion in NuGet output.

Other files

  • Update scripts or logic that distinguish between architectures, such as artifact download scripts or test logic, to recognize and stage arm64 outputs as needed.

Documentation

  • Optionally add or revise relevant documentation to advertise arm64 support for Linux in NuGet.

Testing

  • Ensure build and test steps for arm64 are included for validation of correct packaging and functionality.

This work is based on the current structure and logic of the NuGet packaging pipeline, MSBuild props/targets, and artifact production within LightGBM, as described in semantic code search results and provided context from the repository.

Affected files: .ci/create-nuget.py, .vsts-ci.yml, plus any auxiliary scripts that handle artifact staging, downloading, naming, and documentation.

If there are platform-specific naming conventions (such as lib_lightgbm.so.arm64, or aarch64), update accordingly.
If you require the new build container image details, propose sensible defaults.

This pull request was created as a result of the following prompt from Copilot chat.

Add linux-arm64 support to NuGet package

This change adds Linux arm64 binaries to the NuGet packaging, enabling native support for arm64. The following enhancements are included:

.ci/create-nuget.py

  • Add artifact copy for lib_lightgbm.so targeting linux-arm64 by:
    • Creating the folder runtimes/linux-arm64/native.
    • Copying arm64 build output (e.g., lib_lightgbm.so from the arm64 build) to this folder.
  • Update MSBuild props/targets generated logic to:
    • Reference arm64 artifacts where relevant in conditions or platform checks.
    • Ensure warnings/errors around architecture are revised to include arm64 as a supported platform.

.vsts-ci.yml

  • Add Linux arm64 build job.
    • Use an appropriate arm64 build container (such as Ubuntu or manylinux for aarch64).
    • Ensure artifact staging includes arm64 binary as lib_lightgbm.so or similar recognizable naming.
  • Pass built arm64 artifact to NuGet packaging job.
  • Update artifact collection and publish steps to ensure inclusion in NuGet output.

Other files

  • Update scripts or logic that distinguish between architectures, such as artifact download scripts or test logic, to recognize and stage arm64 outputs as needed.

Documentation

  • Optionally add or revise relevant documentation to advertise arm64 support for Linux in NuGet.

Testing

  • Ensure build and test steps for arm64 are included for validation of correct packaging and functionality.

This work is based on the current structure and logic of the NuGet packaging pipeline, MSBuild props/targets, and artifact production within LightGBM, as described in semantic code search results and provided context from the repository.

Affected files: .ci/create-nuget.py, .vsts-ci.yml, plus any auxiliary scripts that handle artifact staging, downloading, naming, and documentation.

If there are platform-specific naming conventions (such as lib_lightgbm.so.arm64, or aarch64), update accordingly.
If you require the new build container image details, propose sensible defaults.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Nov 19, 2025
Copilot stopped work on behalf of ericstj due to an error November 19, 2025 20:29
@ericstj

ericstj commented Nov 19, 2025

Copy link
Copy Markdown

I was trying to have copilot draft this PR, but it looks like I hit a permissions issue. Unfortunately I can't close this either. Sorry for the noise.

@jameslamb

Copy link
Copy Markdown
Member

Thanks, we'll close this.

@jameslamb jameslamb closed this Nov 19, 2025
@ericstj

ericstj commented Nov 19, 2025

Copy link
Copy Markdown

@jameslamb
jameslamb deleted the copilot/add-linux-arm64-support branch November 19, 2025 20:49
@jameslamb

jameslamb commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

Done. If arm64 nuget packages are something you want but you don't have time to work on it, we'd appreciate you writing up a feature request.

Also note that we're in the process of significantly overhauling build artifacts and pipelines (#6949), so I strongly suspect LLMs would not be able to easily generate a PR that does this while fitting into those plans. This should be done by humans, ideally with the guidance of active maintainers / contributors.

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