Skip to content

Commit

Permalink
Update SourceBuild image to be our Centos 8 Stream image. (dotnet#83106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Mar 8, 2023
1 parent 4e7eeee commit 6c2ddcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 2 additions & 8 deletions eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ jobs:
${{ if notin(parameters.osGroup, 'ios', 'tvos', 'maccatalyst')}}:
value: ''

- name: _sclEnableCommand
${{ if eq(parameters.isSourceBuild, true) }}:
value: scl enable llvm-toolset-7.0 --
${{ if ne(parameters.isSourceBuild, true) }}:
value: ''

- name: _monoAotBuildshCommand
value: ''

Expand Down Expand Up @@ -166,7 +160,7 @@ jobs:
- template: /eng/common/templates/steps/source-build.yml
parameters:
platform:
buildScript: $(_sclEnableCommand) $(Build.SourcesDirectory)$(dir)build$(scriptExt)
buildScript: $(Build.SourcesDirectory)$(dir)build$(scriptExt)
nonPortable: ${{ parameters.isNonPortableSourceBuild }}
targetRID: ${{ parameters.targetRid }}
runtimeOS: linux
Expand Down Expand Up @@ -194,7 +188,7 @@ jobs:
- task: CodeQL3000Init@0
displayName: Initialize CodeQL (manually-injected)

- script: $(_sclEnableCommand) $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci -arch ${{ parameters.archType }} $(_osParameter) ${{ parameters.buildArgs }} $(_officialBuildParameter) $(_crossBuildPropertyArg) $(_cxx11Parameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci -arch ${{ parameters.archType }} $(_osParameter) ${{ parameters.buildArgs }} $(_officialBuildParameter) $(_crossBuildPropertyArg) $(_cxx11Parameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
displayName: Build product
${{ if eq(parameters.useContinueOnErrorDuringBuild, true) }}:
continueOnError: ${{ parameters.shouldContinueOnError }}
Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/common/templates/pipeline-with-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ resources:
env:
ROOTFS_DIR: /crossrootfs/x86

# CentOS 8 Stream is the closest image to RHEL8, which has the oldest toolsets we support building against
# for our source-build partners.
- container: SourceBuild_linux_x64
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-source-build
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8

- container: linux_s390x
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x
Expand Down

0 comments on commit 6c2ddcb

Please sign in to comment.