diff --git a/diagnostics.yml b/diagnostics.yml index dc625dc06b..344397007b 100644 --- a/diagnostics.yml +++ b/diagnostics.yml @@ -87,7 +87,8 @@ extends: parameters: jobTemplate: ${{ variables.jobTemplate }} osGroup: Linux - nativeBuildContainer: linux_x64 + container: linux_x64 + crossBuild: true buildOnly: true buildConfigs: - configuration: Release @@ -104,7 +105,7 @@ extends: name: Linux_musl osGroup: Linux osSuffix: -musl - nativeBuildContainer: linux_musl_x64 + container: linux_musl_x64 crossBuild: true buildOnly: true buildConfigs: @@ -149,7 +150,7 @@ extends: parameters: jobTemplate: ${{ variables.jobTemplate }} osGroup: Linux - nativeBuildContainer: linux_arm + container: linux_arm crossBuild: true buildOnly: true buildConfigs: @@ -161,7 +162,7 @@ extends: parameters: jobTemplate: ${{ variables.jobTemplate }} osGroup: Linux - nativeBuildContainer: linux_arm64 + container: linux_arm64 crossBuild: true buildOnly: true buildConfigs: @@ -175,7 +176,7 @@ extends: name: Linux_musl osGroup: Linux osSuffix: -musl - nativeBuildContainer: linux_musl_arm + container: linux_musl_arm crossBuild: true buildOnly: true buildConfigs: @@ -190,7 +191,7 @@ extends: name: Linux_musl osGroup: Linux osSuffix: -musl - nativeBuildContainer: linux_musl_arm64 + container: linux_musl_arm64 crossBuild: true buildOnly: true buildConfigs: diff --git a/eng/pipelines/build.yml b/eng/pipelines/build.yml index 7cf00df2b5..ffc2b959ee 100644 --- a/eng/pipelines/build.yml +++ b/eng/pipelines/build.yml @@ -45,11 +45,6 @@ parameters: type: object default: {} - # Optional: native build container resource name -- name: nativeBuildContainer - type: string - default: '' - # Optional: container resource name - name: container type: string @@ -135,7 +130,6 @@ jobs: - _PhaseName: ${{ coalesce(parameters.name, parameters.osGroup) }}_${{ config.architecture }}_${{ config.configuration }} - _Pipeline_StreamDumpDir: $(Build.SourcesDirectory)/artifacts/tmp/${{ config.configuration }}/streams - - _ExtraBuildParams: '' - _TestArgs: '-test' - _Cross: '' @@ -166,16 +160,6 @@ jobs: - ${{ if eq(parameters.crossBuild, true) }}: - _Cross: -cross - # If there is a native build container, build managed in the host vm/container and native in the nativeBuildContainer - - ${{ if ne(parameters.nativeBuildContainer, '') }}: - - _ExtraBuildParams: -skipnative - - # TODO: remove this once we move to crossroot builds for all containers. We are currently blocked - # on mariner cross containers not supporting glibc versions supported in 6.0. - # Only add the cross build option if a combined build/test managed/native build (i.e. MacOS arm64) - - ${{ if eq(parameters.nativeBuildContainer, '') }}: - - _ExtraBuildParams: $(_Cross) - steps: - ${{ if eq(parameters.testOnly, true) }}: - ${{ if ne(parameters.osGroup, 'Linux') }}: @@ -200,32 +184,18 @@ jobs: -ci -configuration ${{ config.configuration }} -architecture ${{ config.architecture }} - $(_ExtraBuildParams) $(_TestArgs) + $(_Cross) $(_InternalInstallArgs) /p:OfficialBuildId=$(BUILD.BUILDNUMBER) ${{ if eq(parameters.testOnly, 'true') }}: displayName: Test ${{ elseif eq(parameters.buildOnly, 'true') }}: displayName: Build - ${{ elseif ne(parameters.nativeBuildContainer, '') }}: - displayName: Build Managed ${{ else }}: displayName: Build / Test condition: succeeded() - - ${{ if ne(parameters.nativeBuildContainer, '') }}: - - script: $(_buildScript) - -ci - -configuration ${{ config.configuration }} - -architecture ${{ config.architecture }} - -skipmanaged - $(_Cross) - $(_InternalInstallArgs) - /p:OfficialBuildId=$(BUILD.BUILDNUMBER) - displayName: Build Native - target: ${{ parameters.nativeBuildContainer }} - - ${{ if eq(parameters.isCodeQLRun, 'true') }}: - task: CodeQL3000Finalize@0 displayName: CodeQL Finalize diff --git a/eng/pipelines/pipeline-resources.yml b/eng/pipelines/pipeline-resources.yml index a94c94b60b..6c418d6693 100644 --- a/eng/pipelines/pipeline-resources.yml +++ b/eng/pipelines/pipeline-resources.yml @@ -18,15 +18,22 @@ extends: containers: linux_x64: - image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7 + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-amd64 + env: + ROOTFS_DIR: /crossrootfs/x64 + + linux_x86: + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-x86 + env: + ROOTFS_DIR: /crossrootfs/x86 linux_arm: - image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm env: ROOTFS_DIR: /crossrootfs/arm linux_arm64: - image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64 + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm64 env: ROOTFS_DIR: /crossrootfs/arm64 @@ -36,12 +43,12 @@ extends: ROOTFS_DIR: /crossrootfs/x64 linux_musl_arm: - image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm-alpine env: ROOTFS_DIR: /crossrootfs/arm linux_musl_arm64: - image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine + image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm64-alpine env: ROOTFS_DIR: /crossrootfs/arm64