-
Notifications
You must be signed in to change notification settings - Fork 94
/
ado-build.yml
55 lines (47 loc) · 1.19 KB
/
ado-build.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
trigger:
- "main"
jobs:
- job: NET_pipeline
strategy:
matrix:
linux:
imageName: "ubuntu-20.04"
mac:
imageName: "macOS-latest"
windows:
imageName: "windows-latest"
maxParallel: 4
pool:
vmImage: $(imageName)
steps:
- task: UseDotNet@2
displayName: .NET Core 3.1 sdk
inputs:
version: "3.1.x"
packageType: sdk
- task: UseDotNet@2
displayName: .NET Core 6.0 sdk
inputs:
version: "6.0.x"
packageType: sdk
# Build and test
- task: PowerShell@2
displayName: Build and Test
inputs:
targetType: filePath
filePath: ./scripts/BuildAndTest.ps1
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: "msbuild.binlog"
artifactName: "binlog"
- task: ComponentGovernanceComponentDetection@0
- job: npm_pipeline
pool:
vmImage: "windows-latest"
steps:
# Build Multitool for npm
- task: PowerShell@2
displayName: Build Multitool for npm
inputs:
targetType: filePath
filePath: ./scripts/BuildMultitoolForNpm.ps1