From 1d8eddc15254a97a6c0ab1698efead78a049120c Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Fri, 12 Jul 2024 12:23:09 -0500 Subject: [PATCH] Add Alma Linux leg to source build CI (#19995) --- eng/pipelines/templates/stages/vmr-build.yml | 17 +++++++++++++++++ eng/pipelines/templates/variables/vmr-build.yml | 6 ++++++ .../pipelines/source-build-sdk-diff-tests.yml | 7 +++++++ 3 files changed, 30 insertions(+) diff --git a/eng/pipelines/templates/stages/vmr-build.yml b/eng/pipelines/templates/stages/vmr-build.yml index 04d06cda74a1..6c20e8048f93 100644 --- a/eng/pipelines/templates/stages/vmr-build.yml +++ b/eng/pipelines/templates/stages/vmr-build.yml @@ -91,6 +91,23 @@ stages: # CI - Stage 1 x64 legs ------------------------------------ + # This AlmaLinux leg is intended to build with the min supported glibc version + - template: ../jobs/vmr-build.yml + parameters: + # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline + buildName: ${{ format('{0}_Offline_MsftSdk', variables.almaLinuxName) }} + isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }} + vmrBranch: ${{ variables.VmrBranch }} + architecture: x64 + pool: ${{ parameters.pool_Linux }} + container: ${{ variables.almaLinuxContainer }} + buildFromArchive: false # 🚫 + enablePoison: false # 🚫 + excludeOmniSharpTests: true # ✅ + runOnline: false # 🚫 + useMonoRuntime: false # 🚫 + withPreviousSDK: false # 🚫 + - template: ../jobs/vmr-build.yml@self parameters: # Changing the build name requires updating the referenced name in the source-build-sdk-diff-tests.yml pipeline diff --git a/eng/pipelines/templates/variables/vmr-build.yml b/eng/pipelines/templates/variables/vmr-build.yml index 2d8db158721e..89858e6d9918 100644 --- a/eng/pipelines/templates/variables/vmr-build.yml +++ b/eng/pipelines/templates/variables/vmr-build.yml @@ -1,4 +1,6 @@ variables: +- name: almaLinuxContainer + value: mcr.microsoft.com/dotnet-buildtools/prereqs:almalinux-8-source-build - name: alpineContainer value: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode - name: centOSStreamContainer @@ -10,6 +12,8 @@ variables: - name: ubuntuArmContainer value: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-arm64 +- name: almaLinuxName + value: AlmaLinux8 - name: alpineName value: Alpine319 - name: centOSStreamName @@ -19,6 +23,8 @@ variables: - name: ubuntuName value: Ubuntu2204 +- name: almaLinuxX64Rid + value: almalinux.8-x64 - name: alpineX64Rid value: alpine.3.19-x64 - name: centOSStreamX64Rid diff --git a/src/SourceBuild/content/eng/pipelines/source-build-sdk-diff-tests.yml b/src/SourceBuild/content/eng/pipelines/source-build-sdk-diff-tests.yml index 6642c705bd26..5b020fe1d9d4 100644 --- a/src/SourceBuild/content/eng/pipelines/source-build-sdk-diff-tests.yml +++ b/src/SourceBuild/content/eng/pipelines/source-build-sdk-diff-tests.yml @@ -45,6 +45,13 @@ jobs: dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }} publishTestResultsPr: true +- template: templates/jobs/sdk-diff-tests.yml + parameters: + buildName: ${{ format('{0}_Offline_MsftSdk', variables.almaLinuxName) }} + targetRid: ${{ variables.almaLinuxX64Rid }} + architecture: x64 + dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }} + - template: templates/jobs/sdk-diff-tests.yml parameters: buildName: ${{ format('{0}_Offline_MsftSdk', variables.alpineName) }}