-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.vsts-pr.yml
79 lines (70 loc) · 2.4 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
73
74
75
76
77
78
79
# Pipeline: https://dev.azure.com/dnceng-public/public/_build?definitionId=101
trigger: none
pr:
branches:
include:
- main
- release/*
- internal/release/*
paths:
exclude:
- documentation/*
- README.md
- CODEOWNERS
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: debian12Amd64
image: mcr.microsoft.com/dotnet-buildtools/prereqs:debian-12-gcc14-amd64
- container: fedora39
image: mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-39
- container: ubuntu2204DebPkg
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
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 ###############
# Temporarily removed until the SDK can target net10. The assets produced by upstream repos
# are net10, but this repo needs net9.
# - template: /eng/common/templates-official/job/source-build.yml@self
# parameters:
# platform:
# name: Managed
# container: centosStream9
# jobProperties:
# timeoutInMinutes: 30
############### DOTNET-FORMAT ###############
- template: /eng/dotnet-format/dotnet-format-integration.yml