forked from dotnet/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-pr.yml
72 lines (63 loc) · 2.15 KB
/
.vsts-pr.yml
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
# Pipeline: https://dev.azure.com/dnceng-public/public/_build?definitionId=101
trigger: none
pr:
branches:
include:
- main
- release/*
- internal/release/*
variables:
- template: /eng/pipelines/templates/variables/sdk-defaults.yml
# Variables used: DncEngPublicBuildPool
- template: /eng/common/templates/variables/pool-providers.yml
resources:
containers:
- container: alpine319WithNode
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
- container: centosStream9
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9
- container: debian11Amd64
image: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-amd64
- container: fedora39
image: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-39
- container: ubuntu2204
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
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.vs2022.pre.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.13.amd64.open
############### SOURCE BUILD ###############
- template: /eng/common/templates/job/source-build.yml
parameters:
platform:
name: Managed
container: centosStream9
jobProperties:
timeoutInMinutes: 30
############### DOTNET-FORMAT ###############
- template: /eng/dotnet-format/dotnet-format-integration.yml