Skip to content

Commit 23e559c

Browse files
author
Mike McLaughlin
authored
Update linux build images (#5097)
1 parent 70084ec commit 23e559c

File tree

3 files changed

+20
-42
lines changed

3 files changed

+20
-42
lines changed

diagnostics.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ extends:
8787
parameters:
8888
jobTemplate: ${{ variables.jobTemplate }}
8989
osGroup: Linux
90-
nativeBuildContainer: linux_x64
90+
container: linux_x64
91+
crossBuild: true
9192
buildOnly: true
9293
buildConfigs:
9394
- configuration: Release
@@ -104,7 +105,7 @@ extends:
104105
name: Linux_musl
105106
osGroup: Linux
106107
osSuffix: -musl
107-
nativeBuildContainer: linux_musl_x64
108+
container: linux_musl_x64
108109
crossBuild: true
109110
buildOnly: true
110111
buildConfigs:
@@ -149,7 +150,7 @@ extends:
149150
parameters:
150151
jobTemplate: ${{ variables.jobTemplate }}
151152
osGroup: Linux
152-
nativeBuildContainer: linux_arm
153+
container: linux_arm
153154
crossBuild: true
154155
buildOnly: true
155156
buildConfigs:
@@ -161,7 +162,7 @@ extends:
161162
parameters:
162163
jobTemplate: ${{ variables.jobTemplate }}
163164
osGroup: Linux
164-
nativeBuildContainer: linux_arm64
165+
container: linux_arm64
165166
crossBuild: true
166167
buildOnly: true
167168
buildConfigs:
@@ -175,7 +176,7 @@ extends:
175176
name: Linux_musl
176177
osGroup: Linux
177178
osSuffix: -musl
178-
nativeBuildContainer: linux_musl_arm
179+
container: linux_musl_arm
179180
crossBuild: true
180181
buildOnly: true
181182
buildConfigs:
@@ -190,7 +191,7 @@ extends:
190191
name: Linux_musl
191192
osGroup: Linux
192193
osSuffix: -musl
193-
nativeBuildContainer: linux_musl_arm64
194+
container: linux_musl_arm64
194195
crossBuild: true
195196
buildOnly: true
196197
buildConfigs:

eng/pipelines/build.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ parameters:
4545
type: object
4646
default: {}
4747

48-
# Optional: native build container resource name
49-
- name: nativeBuildContainer
50-
type: string
51-
default: ''
52-
5348
# Optional: container resource name
5449
- name: container
5550
type: string
@@ -135,7 +130,6 @@ jobs:
135130
- _PhaseName: ${{ coalesce(parameters.name, parameters.osGroup) }}_${{ config.architecture }}_${{ config.configuration }}
136131
- _Pipeline_StreamDumpDir: $(Build.SourcesDirectory)/artifacts/tmp/${{ config.configuration }}/streams
137132

138-
- _ExtraBuildParams: ''
139133
- _TestArgs: '-test'
140134
- _Cross: ''
141135

@@ -166,16 +160,6 @@ jobs:
166160
- ${{ if eq(parameters.crossBuild, true) }}:
167161
- _Cross: -cross
168162

169-
# If there is a native build container, build managed in the host vm/container and native in the nativeBuildContainer
170-
- ${{ if ne(parameters.nativeBuildContainer, '') }}:
171-
- _ExtraBuildParams: -skipnative
172-
173-
# TODO: remove this once we move to crossroot builds for all containers. We are currently blocked
174-
# on mariner cross containers not supporting glibc versions supported in 6.0.
175-
# Only add the cross build option if a combined build/test managed/native build (i.e. MacOS arm64)
176-
- ${{ if eq(parameters.nativeBuildContainer, '') }}:
177-
- _ExtraBuildParams: $(_Cross)
178-
179163
steps:
180164
- ${{ if eq(parameters.testOnly, true) }}:
181165
- ${{ if ne(parameters.osGroup, 'Linux') }}:
@@ -200,32 +184,18 @@ jobs:
200184
-ci
201185
-configuration ${{ config.configuration }}
202186
-architecture ${{ config.architecture }}
203-
$(_ExtraBuildParams)
204187
$(_TestArgs)
188+
$(_Cross)
205189
$(_InternalInstallArgs)
206190
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
207191
${{ if eq(parameters.testOnly, 'true') }}:
208192
displayName: Test
209193
${{ elseif eq(parameters.buildOnly, 'true') }}:
210194
displayName: Build
211-
${{ elseif ne(parameters.nativeBuildContainer, '') }}:
212-
displayName: Build Managed
213195
${{ else }}:
214196
displayName: Build / Test
215197
condition: succeeded()
216198

217-
- ${{ if ne(parameters.nativeBuildContainer, '') }}:
218-
- script: $(_buildScript)
219-
-ci
220-
-configuration ${{ config.configuration }}
221-
-architecture ${{ config.architecture }}
222-
-skipmanaged
223-
$(_Cross)
224-
$(_InternalInstallArgs)
225-
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
226-
displayName: Build Native
227-
target: ${{ parameters.nativeBuildContainer }}
228-
229199
- ${{ if eq(parameters.isCodeQLRun, 'true') }}:
230200
- task: CodeQL3000Finalize@0
231201
displayName: CodeQL Finalize

eng/pipelines/pipeline-resources.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,22 @@ extends:
1818

1919
containers:
2020
linux_x64:
21-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7
21+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-amd64
22+
env:
23+
ROOTFS_DIR: /crossrootfs/x64
24+
25+
linux_x86:
26+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-x86
27+
env:
28+
ROOTFS_DIR: /crossrootfs/x86
2229

2330
linux_arm:
24-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm
31+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm
2532
env:
2633
ROOTFS_DIR: /crossrootfs/arm
2734

2835
linux_arm64:
29-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64
36+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm64
3037
env:
3138
ROOTFS_DIR: /crossrootfs/arm64
3239

@@ -36,12 +43,12 @@ extends:
3643
ROOTFS_DIR: /crossrootfs/x64
3744

3845
linux_musl_arm:
39-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine
46+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm-alpine
4047
env:
4148
ROOTFS_DIR: /crossrootfs/arm
4249

4350
linux_musl_arm64:
44-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine
51+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-arm64-alpine
4552
env:
4653
ROOTFS_DIR: /crossrootfs/arm64
4754

0 commit comments

Comments
 (0)