未验证 提交 3ec5b24c 编写于 作者: S Santiago Fernandez Madero 提交者: GitHub

Fix restore of internal tools and enable IBC merge (#1846)

上级 98a558c9
......@@ -17,8 +17,7 @@
<DotNetFinalVersionKind Condition="'$(StabilizePackageVersion)' == 'true'">release</DotNetFinalVersionKind>
<!-- Opt-in/out repo features -->
<UsingToolMicrosoftNetCompilers>true</UsingToolMicrosoftNetCompilers>
<!-- TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 -->
<!-- <UsingToolIbcOptimization>true</UsingToolIbcOptimization> -->
<UsingToolIbcOptimization>true</UsingToolIbcOptimization>
<UsingToolXliff>false</UsingToolXliff>
<!-- Paths used during restore -->
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(ConfigurationGroup)' == 'Release'">true</EnableNgenOptimization>
......
parameters:
installDotnet: false
steps:
- ${{ if eq(parameters.installDotnet, true) }}:
- task: UseDotNet@2
displayName: Install dotnet ${{ parameters.dotnetVersion }}
inputs:
packageType: sdk
useGlobalJson: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: NuGetAuthenticate@0
inputs:
nuGetServiceConnections: 'dotnet-core-internal-tooling'
- task: DotNetCoreCLI@2
displayName: Restore internal tools
condition: and(succeeded(), ne(variables['_skipRestoreInternalTools'], 'true'))
inputs:
command: restore
feedsToUse: config
projects: 'eng/common/internal/Tools.csproj'
nugetConfigPath: 'eng/internal/NuGet.config'
restoreDirectory: '$(Build.SourcesDirectory)\.packages'
verbosityRestore: 'normal'
\ No newline at end of file
......@@ -7,4 +7,4 @@ variables:
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
value: Release
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
value: Debug
\ No newline at end of file
value: Debug
......@@ -89,11 +89,11 @@ jobs:
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- name: officialBuildIdArg
value: '-officialbuildid=$(Build.BuildNumber)'
# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# # IBCMerge is currently Windows-only and x86/x64-only
# - ${{ if and(eq(parameters.osGroup, 'Windows_NT'), or(eq(parameters.archType, 'x64'), eq(parameters.archType, 'x86'))) }}:
# - name: ibcOptimizeArg
# value: '-ibcoptimize'
# IBCMerge is currently Windows-only and x86/x64-only
- ${{ if and(eq(parameters.osGroup, 'Windows_NT'), or(eq(parameters.archType, 'x64'), eq(parameters.archType, 'x86'))) }}:
- name: ibcOptimizeArg
value: '-ibcoptimize'
- name: enforcePgoArg
value: ''
# The EnforcePGO script is only supported on Windows and is not supported on arm or arm64.
......@@ -117,26 +117,14 @@ jobs:
- script: $(Build.SourcesDirectory)\eng\common\init-tools-native.cmd -InstallDirectory $(Build.SourcesDirectory)\native-tools -Force
displayName: Install native dependencies
# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# # Install internal tools on official builds
# # Since our internal tools are behind an authenticated feed,
# # we need to use the DotNetCli AzDO task to restore from the feed using a service connection.
# # We can't do this from within the build, so we need to do this as a separate step.
# - ${{ if and(and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')), eq(parameters.osGroup, 'Windows_NT')) }}:
# - task: DotNetCoreInstaller@0
# inputs:
# packageType: 'sdk'
# version: '2.1.503'
# - task: DotNetCoreCLI@2
# displayName: Restore internal tools
# inputs:
# command: restore
# feedsToUse: config
# projects: '$(Build.SourcesDirectory)/eng/common/internal/Tools.csproj'
# nugetConfigPath: 'eng/internal/NuGet.config'
# restoreDirectory: '$(Build.SourcesDirectory)\.packages'
# verbosityRestore: 'normal'
# externalFeedCredentials: 'dotnet-core-internal-tooling'
- ${{ if and(and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')), eq(parameters.osGroup, 'Windows_NT')) }}:
- template: /eng/pipelines/common/restore-internal-tools.yml
parameters:
installDotnet: true
# Build
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
......
......@@ -67,20 +67,6 @@ jobs:
- ${{ parameters.variables }}
steps:
# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# - ${{ if eq(parameters.isOfficialBuild, true) }}:
# - task: DotNetCoreCLI@2
# displayName: Restore internal tools
# condition: and(succeeded(), ne(variables['_skipRestoreInternalTools'], 'true'))
# inputs:
# command: restore
# feedsToUse: config
# projects: 'eng/common/internal/Tools.csproj'
# nugetConfigPath: 'eng/internal/NuGet.config'
# restoreDirectory: '$(Build.SourcesDirectory)\.packages'
# verbosityRestore: 'normal'
# externalFeedCredentials: 'dotnet-core-internal-tooling'
- ${{ if eq(parameters.osGroup, 'OSX') }}:
- script: |
brew install pkgconfig icu4c openssl
......@@ -102,6 +88,11 @@ jobs:
- script: $(_buildScript) -restore $(_buildArguments) $(_skipTestRestoreArg)
displayName: Restore
- ${{ if eq(parameters.isOfficialBuild, true) }}:
- template: /eng/pipelines/common/restore-internal-tools.yml
parameters:
installDotnet: false
- script: $(_buildScript)
$(_buildAction)
$(_buildArguments)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册