Add deb-arm64 package type for Debian arm64#27386
Closed
andyleejordan wants to merge 1 commit into
Closed
Conversation
Resolves the in-repo half of #24076 (DSR for Debian 12 arm64). We already build a `linux-arm64` self-contained binary and a `tar-arm64` tarball, but the only `.deb` we ship is `amd64`. This adds a `deb-arm64` packaging path that consumes the existing arm64 signed binary drop and emits a deb whose control field reports `Architecture: arm64` and whose filename ends in `_arm64.deb`. The packaging logic itself was almost free — `New-DebPackage` already takes `HostArchitecture` and writes it verbatim into the deb control file and output filename, and Debian uses `arm64` natively (no `aarch64` translation like RPM needs). So the new switch arm in `Start-PSPackage` is a clone of `'deb'` with `HostArchitecture = "arm64"`. Pipeline-side: - `linux-package-build.yml` learns the `deb-arm64` packageType and maps it to the `Signed-linux-arm64` drop folder - `PowerShell-Packages-Stages.yml` adds a `deb_arm64` job that consumes the existing `drop_linux_build_linux_arm64` / `drop_linux_sign_linux_arm64` artifacts (the same ones feeding `tar-arm64` today) - `release-validate-packagenames.yml` widens the deb regex from `_amd64\.deb` to `_(amd64|arm64)\.deb` I deliberately did not set `hostArchitecture: arm64` on the new job's pool. Per OneBranch's ARM64 Build Hosts guidance, that flag is for native compilation of arm64 code; we're just running `dpkg-deb` over already-built arm64 binaries, which is what `tar-arm64` does today on the default amd64 linux pool. The existing signing step's `files_to_sign: '**/*.rpm;**/*.deb'` glob already picks up the new artifact with no change. The remaining DSR checklist items (Docker image in PowerShell/PowerShell-Docker, PMC publish, lifecycle and install-doc updates in MicrosoftDocs/PowerShell-Docs) live outside this repo and are tracked on #24076. Drafted by Copilot (Claude Opus 4.7 (High reasoning)). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
This needs to be run through ADO but having issues using the |
Member
Author
12 tasks
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.
PR Summary
Resolves the in-repo half of #24076 (DSR for Debian 12 arm64). We already build a
linux-arm64self-contained binary and atar-arm64tarball, but the only.debwe ship isamd64. This adds adeb-arm64packaging path that consumes the existing arm64 signed binary drop and emits a deb whose control field reportsArchitecture: arm64and whose filename ends in_arm64.deb.PR Context
The packaging logic itself was almost free —
New-DebPackagealready takesHostArchitectureand writes it verbatim into the deb control file and output filename, and Debian usesarm64natively (noaarch64translation like RPM needs). So the new switch arm inStart-PSPackageis a clone of'deb'withHostArchitecture = "arm64".Pipeline-side:
linux-package-build.ymllearns thedeb-arm64packageType and maps it to theSigned-linux-arm64drop folderPowerShell-Packages-Stages.ymladds adeb_arm64job that consumes the existingdrop_linux_build_linux_arm64/drop_linux_sign_linux_arm64artifacts (the same ones feedingtar-arm64today)release-validate-packagenames.ymlwidens the deb regex from_amd64\.debto_(amd64|arm64)\.debI deliberately did not set
hostArchitecture: arm64on the new job's pool. Per OneBranch's ARM64 Build Hosts guidance, that flag is for native compilation of arm64 code; we're just runningdpkg-debover already-built arm64 binaries, which is whattar-arm64does today on the default amd64 linux pool. The existing signing step'sfiles_to_sign: '**/*.rpm;**/*.deb'glob already picks up the new artifact with no change.The remaining DSR checklist items (Docker image in PowerShell/PowerShell-Docker, PMC publish, lifecycle and install-doc updates in MicrosoftDocs/PowerShell-Docs) live outside this repo and are tracked on #24076.
Drafted by Copilot (Claude Opus 4.7 (High reasoning)).
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header