2023-01-10 04:57:58 +03:00
|
|
|
#
|
2020-10-22 04:51:53 +03:00
|
|
|
# See https://docs.microsoft.com/azure/devops/pipelines/yaml-schema for reference.
|
|
|
|
#
|
|
|
|
|
|
|
|
variables:
|
2023-03-06 23:37:08 +03:00
|
|
|
- template: /eng/common/templates/variables/pool-providers.yml
|
2020-10-22 04:51:53 +03:00
|
|
|
- name: Build.Repository.Clean
|
|
|
|
value: true
|
2024-02-29 12:53:44 +03:00
|
|
|
- name: Codeql.Enabled
|
|
|
|
value: false
|
|
|
|
- name: Codeql.SkipTaskAutoInjection
|
|
|
|
value: true
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-20 03:30:20 +03:00
|
|
|
- main
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
pr:
|
|
|
|
autoCancel: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-20 03:30:20 +03:00
|
|
|
- main
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: build
|
|
|
|
displayName: Build
|
|
|
|
jobs:
|
|
|
|
- template: /eng/common/templates/jobs/jobs.yml
|
|
|
|
parameters:
|
2021-10-08 00:47:55 +03:00
|
|
|
helixRepo: dotnet/razor-tooling
|
2020-10-22 04:51:53 +03:00
|
|
|
helixType: build.product/
|
|
|
|
enableRichCodeNavigation: true
|
2023-10-26 02:16:16 +03:00
|
|
|
richCodeNavigationLanguage: 'csharp'
|
2020-10-22 04:51:53 +03:00
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
pool:
|
2023-03-06 23:37:08 +03:00
|
|
|
name: $(DncEngPublicBuildPool)
|
2022-09-28 02:28:27 +03:00
|
|
|
demands: ImageOverride -equals windows.vs2019.amd64.open
|
2020-10-22 04:51:53 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Clear NuGet caches'
|
|
|
|
condition: succeeded()
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
arguments: 'locals all -clear'
|
|
|
|
|
2022-10-14 02:02:34 +03:00
|
|
|
- task: PowerShell@2
|
2020-10-22 04:51:53 +03:00
|
|
|
displayName: Build
|
|
|
|
condition: succeeded()
|
2022-10-14 02:02:34 +03:00
|
|
|
inputs:
|
|
|
|
filePath: eng/common/build.ps1
|
|
|
|
arguments: -ci
|
|
|
|
-restore
|
|
|
|
-build
|
|
|
|
-sign
|
|
|
|
-pack
|
|
|
|
-publish
|
|
|
|
-configuration Debug
|
|
|
|
-msbuildEngine dotnet
|
2023-10-26 02:16:16 +03:00
|
|
|
-prepareMachine
|