[release/v7.6.2] Create PowerShell package for arm debian distribution#27433
Merged
daxian-dbw merged 1 commit intoMay 13, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Backport that adds Debian arm64 packaging support to the release/v7.6.2 packaging pipeline by introducing a new deb-arm64 package type, wiring it into pipeline stages, and updating package-name validation to accept arm64 DEB artifacts.
Changes:
- Add
deb-arm64as a supportedStart-PSPackagetype and route it through Debian packaging withHostArchitecture = arm64. - Add a new Linux packaging job/stage entry for
deb-arm64and map it to the correct signed artifact folder. - Update DEB package-name validation to allow
arm64and adjust tests/documentation examples accordingly.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tools/packaging/packaging.psm1 |
Adds deb-arm64 package type handling that invokes Debian packaging with HostArchitecture=arm64. |
test/packaging/linux/package-validation.tests.ps1 |
Updates DEB name-validation test examples/patterns to allow arm64. |
.pipelines/templates/stages/PowerShell-Packages-Stages.yml |
Adds a deb-arm64 Linux packaging job using the existing arm64 drops. |
.pipelines/templates/release-validate-packagenames.yml |
Updates DEB regex to accept arm64 in release package-name validation. |
.pipelines/templates/linux-package-build.yml |
Adds deb-arm64 mapping to the appropriate signed artifact folder and DEB filter. |
| $message = @() | ||
| Get-ChildItem $(System.ArtifactsDirectory)\* -recurse -filter *.deb | ForEach-Object { | ||
| if($_.Name -notmatch 'powershell(-preview|-lts)?_\d+\.\d+\.\d+([\-~][a-z]*.\d+)?-\d\.deb_amd64\.deb') | ||
| if($_.Name -notmatch 'powershell(-preview|-lts)?_\d+\.\d+\.\d+([\-~][a-z]*.\d+)?-\d\.deb_(amd64|arm64)\.deb') |
Comment on lines
+644
to
+661
| 'deb-arm64' { | ||
| $Arguments = @{ | ||
| Type = 'deb' | ||
| PackageSourcePath = $Source | ||
| Name = $Name | ||
| Version = $Version | ||
| Force = $Force | ||
| NoSudo = $NoSudo | ||
| LTS = $LTS | ||
| HostArchitecture = "arm64" | ||
| } | ||
| foreach ($Distro in $Script:DebianDistributions) { | ||
| $Arguments["Distribution"] = $Distro | ||
| if ($PSCmdlet.ShouldProcess("Create DEB Package for $Distro")) { | ||
| New-UnixPackage @Arguments | ||
| } | ||
| } | ||
| } |
SeeminglyScience
approved these changes
May 13, 2026
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.
Backport of #26925 to release/v7.6.2
Triggered by @daxian-dbw on behalf of @anamnavi
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Adds arm64 Debian package build support to the packaging pipeline, including a new
deb-arm64package type, updated pipeline stages, and package name validation regex updates.Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Verified via the original PR. Regression test validates that the
pwshbinary inside arm64 Debian packages has executable permissions. Package name validation regex updated to acceptarm64suffix.Risk
REQUIRED: Check exactly one box.
Adds a new
deb-arm64package type to the build pipeline. Existing package types are untouched, but the change touches core packaging logic and pipeline templates.Merge Conflicts
Conflict in tools/packaging/packaging.psm1 ValidateSet — release branch additionally contains
msitype not present in master. Resolved by keeping bothdeb-arm64(from the PR) andmsi(from the release branch).