2018-10-17 22:17:40 +00:00
|
|
|
trigger:
|
2019-04-10 23:17:11 +00:00
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-18 22:21:24 +00:00
|
|
|
- main
|
2019-04-10 23:17:11 +00:00
|
|
|
- master
|
|
|
|
- release/*
|
2019-11-26 01:28:25 +00:00
|
|
|
- internal/release/3.*
|
2020-07-21 14:55:52 +00:00
|
|
|
- internal/release/5.*
|
2021-08-09 17:08:25 +00:00
|
|
|
- internal/release/6.*
|
2018-10-17 22:17:40 +00:00
|
|
|
|
|
|
|
variables:
|
2019-09-10 19:33:20 +00:00
|
|
|
- name: _PublishUsingPipelines
|
|
|
|
value: false
|
2020-12-01 14:56:48 +00:00
|
|
|
- name: PostBuildSign
|
|
|
|
value: true
|
2019-01-24 19:21:51 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2022-10-25 21:32:46 +00:00
|
|
|
- name: Codeql.Enabled
|
|
|
|
value: true
|
2019-01-24 19:21:51 +00:00
|
|
|
- group: DotNet-DotNetCli-Storage
|
2020-04-02 13:24:09 +00:00
|
|
|
- group: DotNet-Installer-SDLValidation-Params
|
2019-09-10 19:33:20 +00:00
|
|
|
- name: _PublishUsingPipelines
|
|
|
|
value: true
|
2018-10-17 22:17:40 +00:00
|
|
|
|
2020-04-27 15:53:02 +00:00
|
|
|
# Default to running tests in PRs and public CI, but not in official builds
|
|
|
|
- name: _WindowsTestArg
|
|
|
|
value: '-test'
|
|
|
|
- name: _NonWindowsTestArg
|
|
|
|
value: '--test'
|
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- name: _WindowsTestArg
|
|
|
|
value: ''
|
|
|
|
- name: _NonWindowsTestArg
|
|
|
|
value: ''
|
|
|
|
|
2021-08-06 20:54:33 +00:00
|
|
|
- name: _InternalRuntimeDownloadArgs
|
|
|
|
value: ''
|
|
|
|
|
|
|
|
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2021-11-15 16:37:04 +00:00
|
|
|
- group: DotNetBuilds storage account read tokens
|
2021-08-06 20:54:33 +00:00
|
|
|
- name: _InternalRuntimeDownloadArgs
|
2022-01-19 18:34:20 +00:00
|
|
|
value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
|
|
|
|
/p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
|
2021-11-15 16:37:04 +00:00
|
|
|
/p:dotnetbuilds-internal-container-read-token-base64=$(dotnetbuilds-internal-container-read-token-base64)
|
2021-08-06 20:54:33 +00:00
|
|
|
|
2019-09-10 19:33:20 +00:00
|
|
|
stages:
|
|
|
|
- stage: build
|
|
|
|
jobs:
|
2021-07-07 00:10:07 +00:00
|
|
|
- job: Publish_Build_Configuration
|
2022-01-21 17:46:24 +00:00
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2022-09-01 00:17:42 +00:00
|
|
|
name: NetCore-Svc-Public
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64.open
|
2022-01-21 17:46:24 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64
|
2021-07-07 00:10:07 +00:00
|
|
|
steps:
|
|
|
|
- publish: $(Build.SourcesDirectory)\eng\BuildConfiguration
|
|
|
|
artifact: BuildConfiguration
|
|
|
|
displayName: Publish Build Config
|
2019-09-10 19:33:20 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Windows_NT
|
|
|
|
pool:
|
2020-07-20 18:48:37 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2022-09-01 00:17:42 +00:00
|
|
|
name: NetCore-Svc-Public
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64.open
|
2020-07-20 18:48:37 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2021-09-28 17:51:36 +00:00
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64
|
2019-09-10 19:33:20 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# Public-only builds
|
|
|
|
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
Build_Debug_x86:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_BuildArchitecture: x86
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: ''
|
|
|
|
_TestArg: $(_WindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_ES_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: es
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: ''
|
2021-09-21 19:41:55 +00:00
|
|
|
_TestArg: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
# Internal-only builds
|
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
Build_Release_x86:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x86
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: ''
|
|
|
|
_TestArg: $(_WindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
# Always run builds
|
|
|
|
Build_Release_x64:
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: '/p:PublishInternalAsset=true'
|
|
|
|
_TestArg: $(_WindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Release_arm:
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildConfig: Release
|
2019-09-10 19:33:20 +00:00
|
|
|
_BuildArchitecture: arm
|
2018-12-19 20:53:08 +00:00
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: ''
|
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2020-03-06 23:51:55 +00:00
|
|
|
Build_Release_arm64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: arm64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
2020-04-27 15:53:02 +00:00
|
|
|
_AdditionalBuildParameters: ''
|
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2018-10-17 22:17:40 +00:00
|
|
|
|
2021-03-24 08:02:14 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Windows_NT
|
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2022-09-01 00:17:42 +00:00
|
|
|
name: NetCore-Svc-Public
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64.open
|
2021-03-24 08:02:14 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2021-09-28 12:40:29 +00:00
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64
|
2021-03-24 08:02:14 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# Always run builds
|
|
|
|
Build_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_AdditionalBuildParameters: '/p:PublishInternalAsset=true'
|
|
|
|
# Never run tests on PGO bits
|
|
|
|
_TestArg: ''
|
2021-04-16 22:42:45 +00:00
|
|
|
Build_Release_x86:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x86
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_AdditionalBuildParameters: ''
|
|
|
|
_TestArg: ''
|
2021-03-24 08:02:14 +00:00
|
|
|
pgoInstrument: true
|
|
|
|
|
2019-09-10 19:33:20 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Linux
|
|
|
|
pool:
|
2020-04-20 20:00:24 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2022-09-01 00:17:42 +00:00
|
|
|
name: NetCore-Svc-Public
|
2021-12-06 22:37:28 +00:00
|
|
|
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
|
2020-04-20 20:00:24 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2021-09-28 12:40:29 +00:00
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2021-12-06 22:37:28 +00:00
|
|
|
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
|
2019-09-10 19:33:20 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
Build_Ubuntu_18_04_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker ubuntu.18.04'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Fedora_29_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker fedora.29'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_CentOS_7_1_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker centos'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2023-05-03 19:19:12 +00:00
|
|
|
Build_Debian_11_Debug_x64:
|
2020-03-18 05:47:32 +00:00
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker debian'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2022-06-03 16:12:24 +00:00
|
|
|
_AdditionalBuildParameters: '/p:BuildSdkDeb=true'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Rhel_7_2_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker rhel'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2022-03-09 16:54:57 +00:00
|
|
|
Build_Rhel_7_2_Release_Arm64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker rhel'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
# Never run tests on arm
|
|
|
|
_TestArg: ''
|
|
|
|
_AdditionalBuildParameters: '/p:CLIBUILD_SKIP_TESTS=true'
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Arm_Debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
|
|
|
_BuildArchitecture: 'arm'
|
2020-10-30 02:18:46 +00:00
|
|
|
# Never run tests on arm
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Arm64_Debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
2020-04-27 15:53:02 +00:00
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2020-10-30 02:18:46 +00:00
|
|
|
Build_Linux_musl_Debug_arm:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
# linux-musl-arm cross gen depends on glibc 2.27 (this OS has it)
|
|
|
|
_DockerParameter: '--docker ubuntu.18.04'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-arm'
|
|
|
|
_BuildArchitecture: 'arm'
|
|
|
|
_AdditionalBuildParameters: '/p:OSName="linux-musl"'
|
|
|
|
# Never run tests on arm
|
|
|
|
_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: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Linux_musl_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
2021-07-14 23:49:23 +00:00
|
|
|
_DockerParameter: '--docker alpine.3.13'
|
2019-09-10 19:33:20 +00:00
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
2021-06-12 08:55:58 +00:00
|
|
|
# Pass in HostOSName when running on alpine
|
2021-06-14 04:32:08 +00:00
|
|
|
_AdditionalBuildParameters: '/p:HostOSName="linux-musl"'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
Build_Arm_Release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
|
|
|
_BuildArchitecture: 'arm'
|
2020-10-30 02:18:46 +00:00
|
|
|
# Never run tests on arm
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Arm64_Release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
2020-04-27 15:53:02 +00:00
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2020-10-30 02:18:46 +00:00
|
|
|
Build_Linux_musl_Release_arm:
|
|
|
|
_BuildConfig: Release
|
|
|
|
# linux-musl-arm cross gen depends on glibc 2.27 (this OS has it)
|
|
|
|
_DockerParameter: '--docker ubuntu.18.04'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-arm'
|
|
|
|
_BuildArchitecture: 'arm'
|
|
|
|
_AdditionalBuildParameters: '/p:OSName="linux-musl"'
|
|
|
|
# Never run tests on arm
|
|
|
|
_TestArg: ''
|
|
|
|
Build_Linux_musl_Release_arm64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
_AdditionalBuildParameters: '/p:OSName="linux-musl"'
|
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Linux_musl_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2021-07-14 23:49:23 +00:00
|
|
|
_DockerParameter: '--docker alpine.3.13'
|
2019-09-10 19:33:20 +00:00
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
2021-06-12 08:55:58 +00:00
|
|
|
# Pass in HostOSName when running on alpine
|
2021-06-14 04:32:08 +00:00
|
|
|
_AdditionalBuildParameters: '/p:HostOSName="linux-musl"'
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Linux_Portable_Deb_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2022-05-25 23:35:08 +00:00
|
|
|
_DockerParameter: '--docker ubuntu.18.04'
|
2019-09-10 19:33:20 +00:00
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
|
|
|
# already published by Build_LinuxPortable_Release_x64
|
2022-06-10 20:23:02 +00:00
|
|
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:BuildSdkDeb=true'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_Linux_Portable_Rpm_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker rhel'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
|
|
|
# already published by Build_LinuxPortable_Release_x64
|
|
|
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2022-03-09 16:54:57 +00:00
|
|
|
Build_Linux_Portable_Rpm_Release_Arm64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker rhel'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
|
|
|
# already published by Build_LinuxPortable_Release_x64
|
|
|
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:CLIBUILD_SKIP_TESTS=true'
|
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2019-09-10 19:33:20 +00:00
|
|
|
Build_LinuxPortable_Release_x64:
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2018-12-24 18:12:23 +00:00
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2019-09-10 19:33:20 +00:00
|
|
|
|
2021-04-16 22:42:45 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Linux
|
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
2022-09-01 00:17:42 +00:00
|
|
|
name: NetCore-Svc-Public
|
2021-12-06 22:37:28 +00:00
|
|
|
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
|
2021-04-16 22:42:45 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2021-09-28 12:40:29 +00:00
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2021-12-06 22:37:28 +00:00
|
|
|
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
|
2021-04-16 22:42:45 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# Always run builds
|
|
|
|
Build_LinuxPortable_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_TestArg: ''
|
|
|
|
pgoInstrument: true
|
|
|
|
|
2019-09-10 19:33:20 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Darwin
|
2021-03-24 08:02:14 +00:00
|
|
|
pool:
|
2022-07-15 20:07:12 +00:00
|
|
|
vmImage: 'macOS-latest'
|
2019-09-10 19:33:20 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-11-18 20:12:39 +00:00
|
|
|
Build_Release_x64:
|
2018-12-22 05:43:17 +00:00
|
|
|
_BuildConfig: Release
|
2020-11-18 20:12:39 +00:00
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
2020-04-27 15:53:02 +00:00
|
|
|
_TestArg: $(_NonWindowsTestArg)
|
2020-11-18 20:12:39 +00:00
|
|
|
Build_Release_arm64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_RuntimeIdentifier: '--runtime-id osx-arm64'
|
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
# Never run tests on arm64
|
|
|
|
_TestArg: ''
|
2018-10-17 22:17:40 +00:00
|
|
|
|
2021-06-28 12:36:57 +00:00
|
|
|
- template: /eng/common/templates/jobs/source-build.yml
|
|
|
|
|
2021-06-29 13:33:40 +00:00
|
|
|
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-create-tarball.yml
|
2021-05-04 21:17:02 +00:00
|
|
|
|
2022-10-11 21:35:00 +00:00
|
|
|
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
|
|
|
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
|
|
|
|
parameters:
|
|
|
|
dependsOn: Source_Build_Create_Tarball
|
2021-08-06 17:50:48 +00:00
|
|
|
|
2019-09-10 19:33:20 +00:00
|
|
|
# https://github.com/dotnet/core-sdk/issues/248
|
|
|
|
# - template: /eng/build.yml
|
|
|
|
# parameters:
|
|
|
|
# agentOs: FreeBSD
|
2021-03-24 08:02:14 +00:00
|
|
|
# queue:
|
2019-09-10 19:33:20 +00:00
|
|
|
# name: dnceng-freebsd-internal
|
|
|
|
# timeoutInMinutes: 180
|
|
|
|
# matrix:
|
|
|
|
# Build_Release:
|
|
|
|
# _BuildConfig: Release
|
2020-11-18 20:12:39 +00:00
|
|
|
# _BuildArchitecture: 'x64'
|
2019-09-10 19:33:20 +00:00
|
|
|
# _AdditionalBuildParameters: '/p:DisableSourceLink=true /p:DISABLE_CROSSGEN=true'
|
2018-12-19 20:53:08 +00:00
|
|
|
|
2019-09-10 19:33:20 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- template: /eng/common/templates/job/publish-build-assets.yml
|
|
|
|
parameters:
|
|
|
|
dependsOn:
|
|
|
|
- Windows_NT
|
|
|
|
- Linux
|
|
|
|
- Darwin
|
2021-06-28 12:36:57 +00:00
|
|
|
- Source_Build_Managed
|
2021-06-29 13:33:40 +00:00
|
|
|
- Source_Build_Create_Tarball
|
2019-09-10 19:33:20 +00:00
|
|
|
publishUsingPipelines: true
|
|
|
|
pool:
|
2022-02-06 17:41:11 +00:00
|
|
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
|
|
|
name: NetCore1ESPool-Svc-Internal
|
2022-09-28 06:44:43 +00:00
|
|
|
demands: ImageOverride -equals windows.vs2017.amd64
|
2022-01-27 22:25:01 +00:00
|
|
|
|
2018-12-19 20:53:08 +00:00
|
|
|
|
2019-01-24 19:21:51 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2019-09-10 19:33:20 +00:00
|
|
|
- template: eng\common\templates\post-build\post-build.yml
|
2019-01-24 19:21:51 +00:00
|
|
|
parameters:
|
2020-09-17 17:05:22 +00:00
|
|
|
publishingInfraVersion: 3
|
2019-09-10 19:33:20 +00:00
|
|
|
enableSymbolValidation: false
|
|
|
|
enableSigningValidation: false
|
2020-07-13 17:27:42 +00:00
|
|
|
enableNugetValidation: false
|
|
|
|
enableSourceLinkValidation: false
|
2019-09-10 19:33:20 +00:00
|
|
|
publishInstallersAndChecksums: true
|
2020-04-02 13:24:09 +00:00
|
|
|
SDLValidationParameters:
|
2020-07-13 17:27:42 +00:00
|
|
|
enable: false
|
2020-04-02 13:24:09 +00:00
|
|
|
params: ' -SourceToolsList @("policheck","credscan")
|
|
|
|
-TsaInstanceURL $(_TsaInstanceURL)
|
|
|
|
-TsaProjectName $(_TsaProjectName)
|
|
|
|
-TsaNotificationEmail $(_TsaNotificationEmail)
|
|
|
|
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
|
|
|
|
-TsaBugAreaPath $(_TsaBugAreaPath)
|
|
|
|
-TsaIterationPath $(_TsaIterationPath)
|
2020-04-02 13:34:18 +00:00
|
|
|
-TsaRepositoryName "dotnet-installer"
|
|
|
|
-TsaCodebaseName "dotnet-installer"
|
2020-04-02 13:24:09 +00:00
|
|
|
-TsaPublish $True'
|