-
Notifications
You must be signed in to change notification settings - Fork 7.8k
adding support for linux-ppc64le for building and packaging #25757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
@adilhusain-s please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This pull request introduces support for the
linux-ppc64le
runtime across various build and packaging scripts. The changes ensure compatibility with this architecture by updating runtime lists, handling specific build configurations, and dynamically determining host architecture for packaging.Build system updates
linux-ppc64le
to the list of supported runtimes inStart-PSBuild
andNew-PSOptions
functions, enabling build processes for this architecture. [1] [2]Fix steps
section to disable ReadyToRun compilation, treat warnings as non-errors, and disable analyzers specifically forlinux-ppc64le
to address NETSDK1094 errors.linux-ppc64le
in theClear-NativeDependencies
function to ensure proper cleanup of native dependencies.Packaging system updates
Start-PSPackage
to dynamically determine the host architecture forlinux-ppc64le
, mapping it toppc64el
as used by Debian.HostArchitecture
property inStart-PSPackage
to use the dynamically determined value instead of the hardcoded"amd64"
.ppc64el
to the allowed values for theHostArchitecture
parameter inNew-UnixPackage
, ensuring compatibility with RPM and Debian packaging formats.PR Summary
Adds first-class support for building and packaging PowerShell on the
linux-ppc64le
runtime. This expands PowerShell's architecture support to include IBM Power systems, enabling developers to build, clean, and package PowerShell natively for ppc64le.PR Context
This PR aligns with IBM’s initiative to enhance open source tooling on IBM Power, Z, and LinuxONE platforms. IBM recently announced GitHub Actions runners are now available on these platforms, enabling seamless CI/CD pipelines for open source projects:
🔗 Expanding Open Source Access: GitHub Actions Now Available for IBM Power, IBM Z and IBM LinuxONE
Additionally, this work is directly relevant to the effort to include PowerShell in the gaplib LXD image used for GitHub Actions runners on ppc64le, which currently lacks the PowerShell binary required by workflows like
actions/python-versions
. The related tracking issue is:🔗 ppc64le/gaplib Issue #2: include powershell in lxd image
By enabling a clean and compatible build for
linux-ppc64le
, this PR facilitates native PowerShell availability on these runners, eliminating a critical gap in the CI ecosystem for ppc64le.PR Checklist
PR has a meaningful title
Summarized changes
Make sure all
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerThis PR is ready to merge. If this PR is a work in progress, please open this as a Draft Pull Request and mark it as Ready to Review when it is ready to merge.
Breaking changes
User-facing changes
Testing - New and feature
ppc64le
systems