-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy path.vsts-pr.yml
More file actions
91 lines (82 loc) · 2.3 KB
/
.vsts-pr.yml
File metadata and controls
91 lines (82 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Pipeline: https://dev.azure.com/dnceng-public/public/_build?definitionId=101
trigger:
batch: true
branches:
include:
- main
pr:
branches:
include:
- main
- release/*
- internal/release/*
paths:
include:
- eng
- build
- src
- test
- '*.yml'
- '*.props'
- '*.targets'
exclude:
- documentation/*
- README.md
- CODEOWNERS
parameters:
- name: enableArm64Job
displayName: Enables the ARM64 job
type: boolean
default: true
variables:
- template: /eng/pipelines/templates/variables/sdk-defaults.yml
# Variables used: DncEngPublicBuildPool
- template: /eng/common/templates/variables/pool-providers.yml
resources:
containers:
- container: azureLinux30Amd64
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-build-amd64
stages:
############### BUILD STAGE ###############
- stage: build
displayName: Build
jobs:
############### WINDOWS ###############
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml@self
parameters:
pool:
name: $(DncEngPublicBuildPool)
demands: ImageOverride -equals windows.vs2022.amd64.open
os: windows
helixTargetQueue: windows.amd64.vs2026.pre.scout.open
############### LINUX ###############
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml
parameters:
pool:
name: $(DncEngPublicBuildPool)
demands: ImageOverride -equals build.ubuntu.2204.amd64.open
os: linux
helixTargetQueue: ubuntu.2204.amd64.open
############### MACOS ###############
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml
parameters:
pool:
name: Azure Pipelines
vmImage: macOS-latest
os: macOS
helixTargetQueue: osx.15.amd64.open
### ARM64 ###
- ${{ if eq(parameters.enableArm64Job, true) }}:
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml
parameters:
pool:
name: Azure Pipelines
vmImage: macOS-latest
os: macOS
helixTargetQueue: osx.15.arm64.open
macOSJobParameterSets:
- categoryName: TestBuild
targetArchitecture: arm64
runtimeIdentifier: osx-arm64
############### DOTNET-FORMAT ###############
- template: /eng/dotnet-format/dotnet-format-integration.yml