Fix the pgo removal

Switch the windows debug tests to run on x64
Switch x86 and arm64 to only run in CI.
This commit is contained in:
Marc Paine 2022-07-15 12:04:38 -07:00
parent 793661118d
commit a6bce923c7

View file

@ -71,50 +71,45 @@ stages:
matrix: matrix:
# Public-only builds # Public-only builds
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}: ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
Build_Debug_x86: Build_Release_x64:
_BuildConfig: Debug _BuildConfig: Debug
_BuildArchitecture: x86 _BuildArchitecture: x64
_DOTNET_CLI_UI_LANGUAGE: '' _DOTNET_CLI_UI_LANGUAGE: ''
_AdditionalBuildParameters: '' _AdditionalBuildParameters: '/p:PublishInternalAsset=true'
_TestArg: $(_WindowsTestArg) _TestArg: $(_WindowsTestArg)
# Internal-only builds # Internal-only builds
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
Build_Release_x64:
_BuildConfig: Release
_BuildArchitecture: x64
_DOTNET_CLI_UI_LANGUAGE: ''
_AdditionalBuildParameters: '/p:PublishInternalAsset=true'
_TestArg: $(_WindowsTestArg)
Build_Release_x86: Build_Release_x86:
_BuildConfig: Release _BuildConfig: Release
_BuildArchitecture: x86 _BuildArchitecture: x86
_DOTNET_CLI_UI_LANGUAGE: '' _DOTNET_CLI_UI_LANGUAGE: ''
_AdditionalBuildParameters: '' _AdditionalBuildParameters: ''
_TestArg: $(_WindowsTestArg) _TestArg: $(_WindowsTestArg)
# Always run builds Build_Release_arm64:
Build_Release_x64: _BuildConfig: Release
_BuildConfig: Release _BuildArchitecture: arm64
_BuildArchitecture: x64 _DOTNET_CLI_UI_LANGUAGE: ''
_DOTNET_CLI_UI_LANGUAGE: '' _AdditionalBuildParameters: ''
_AdditionalBuildParameters: '/p:PublishInternalAsset=true' # Never run tests on arm64
_TestArg: $(_WindowsTestArg) _TestArg: ''
Build_Release_arm64:
_BuildConfig: Release
_BuildArchitecture: arm64
_DOTNET_CLI_UI_LANGUAGE: ''
_AdditionalBuildParameters: ''
# Never run tests on arm64
_TestArg: ''
- template: /eng/build.yml ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
parameters: - template: /eng/build.yml
agentOs: Windows_NT parameters:
pool: agentOs: Windows_NT
${{ if eq(variables['System.TeamProject'], 'public') }}: pool:
name: NetCore1ESPool-Public ${{ if eq(variables['System.TeamProject'], 'internal') }}:
demands: ImageOverride -equals build.windows.10.amd64.vs2019.open name: NetCore1ESPool-Internal
${{ if eq(variables['System.TeamProject'], 'internal') }}: demands: ImageOverride -equals build.windows.10.amd64.vs2019
name: NetCore1ESPool-Internal timeoutInMinutes: 180
demands: ImageOverride -equals build.windows.10.amd64.vs2019 strategy:
timeoutInMinutes: 180 matrix:
strategy:
matrix:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# Always run builds
Build_Release_x64: Build_Release_x64:
_BuildConfig: Release _BuildConfig: Release
_BuildArchitecture: x64 _BuildArchitecture: x64
@ -135,7 +130,7 @@ stages:
_AdditionalBuildParameters: '' _AdditionalBuildParameters: ''
# Never run tests on arm64 # Never run tests on arm64
_TestArg: '' _TestArg: ''
pgoInstrument: true pgoInstrument: true
- template: /eng/build.yml - template: /eng/build.yml
parameters: parameters:
@ -188,15 +183,6 @@ stages:
_BuildArchitecture: 'arm64' _BuildArchitecture: 'arm64'
# Never run tests on arm64 # Never run tests on arm64
_TestArg: '' _TestArg: ''
Build_Linux_musl_Debug_arm64:
_BuildConfig: Debug
_DockerParameter: ''
_LinuxPortable: ''
_RuntimeIdentifier: '--runtime-id linux-musl-arm64'
_BuildArchitecture: 'arm64'
_AdditionalBuildParameters: '/p:OSName="linux-musl"'
# Never run tests on arm64
_TestArg: ''
Build_Linux_musl_Debug_x64: Build_Linux_musl_Debug_x64:
_BuildConfig: Debug _BuildConfig: Debug
_DockerParameter: '--docker alpine.3.15' _DockerParameter: '--docker alpine.3.15'
@ -289,21 +275,17 @@ stages:
_BuildArchitecture: 'x64' _BuildArchitecture: 'x64'
_TestArg: $(_NonWindowsTestArg) _TestArg: $(_NonWindowsTestArg)
- template: /eng/build.yml ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
parameters: - template: /eng/build.yml
agentOs: Linux parameters:
pool: agentOs: Linux
${{ if eq(variables['System.TeamProject'], 'public') }}: pool:
name: NetCore1ESPool-Public ${{ if eq(variables['System.TeamProject'], 'internal') }}:
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open name: NetCore1ESPool-Internal
${{ if eq(variables['System.TeamProject'], 'internal') }}: demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
name: NetCore1ESPool-Internal timeoutInMinutes: 180
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64 strategy:
timeoutInMinutes: 180 matrix:
strategy:
matrix:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# Always run builds
Build_LinuxPortable_Release_x64: Build_LinuxPortable_Release_x64:
_BuildConfig: Release _BuildConfig: Release
_DockerParameter: '' _DockerParameter: ''
@ -318,7 +300,7 @@ stages:
_AdditionalBuildParameters: '' _AdditionalBuildParameters: ''
# Never run tests on arm64 # Never run tests on arm64
_TestArg: '' _TestArg: ''
pgoInstrument: true pgoInstrument: true
- template: /eng/build.yml - template: /eng/build.yml
parameters: parameters: