Add new linux-64 build using Rocky Linux #109
Open
+71
−46
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
This pull request adds support for building and packaging native binaries for Rocky Linux alongside existing Linux distributions. The changes include updates to pipeline templates, build scripts, and the addition of a Dockerfile for Rocky Linux. The overall goal is to enable Rocky Linux as a supported target in the CI/CD process, ensuring its artifacts are built and included in the final NuGet package.
Pipeline and Build System Updates:
LinuxRockyBuildstage to.pipelines/release.yml, using the newbuild-docker.ymltemplate to build for Rocky Linux, and updated the NuGet packaging stage to depend on this new build. [1] [2]build-alpine.ymltobuild-docker.yml, adding parameters for container image, platform, and stage name to support multiple Linux distributions, including Rocky Linux.build-docker.ymlto be parameterized by platform, supporting both Alpine and Rocky Linux builds. [1] [2] [3]NuGet Packaging Adjustments:
Build Script Enhancements:
build.psm1to detect Rocky Linux (IsRocky8), treat it as part of the RedHat family, and use the appropriate package manager (dnf) for installing dependencies. [1] [2]fpmandronn) as they are no longer needed.Docker Support for Rocky Linux:
docker/rocky/Dockerfileto build native binaries for Rocky Linux using the appropriate base image and toolchain.PR Context
Fixes PowerShell/PowerShell#26704