-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-build.yml
66 lines (57 loc) · 1.55 KB
/
azure-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
56
57
58
59
60
61
62
63
64
65
66
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 2.1 Runtime'
inputs:
version: '2.1.x'
packageType: 'runtime'
- task: UseDotNet@2
displayName: 'Install .NET Core 3.0 Runtime'
inputs:
version: '3.0.x'
packageType: 'runtime'
- task: UseDotNet@2
displayName: 'Install .NET 6.0 SDK'
inputs:
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: 'Restore packages'
inputs:
command: 'restore'
- task: DotNetCoreCLI@2
displayName: 'Test netcoreapp2.1'
inputs:
command: 'test'
arguments: '-c Release -f netcoreapp2.1'
testRunTitle: 'netcoreapp2.1'
- task: DotNetCoreCLI@2
displayName: 'Test netcoreapp3.0 (Baseline)'
inputs:
command: 'test'
arguments: '-c Release -f netcoreapp3.0'
testRunTitle: 'netcoreapp3.0'
- task: DotNetCoreCLI@2
displayName: 'Test net47'
condition: eq(variables['Agent.OS'], 'Windows_NT')
inputs:
command: 'test'
arguments: '-c Release -f net47'
testRunTitle: 'net47'
- task: DotNetCoreCLI@2
displayName: 'Test net48'
condition: eq(variables['Agent.OS'], 'Windows_NT')
inputs:
command: 'test'
arguments: '-c Release -f net48'
testRunTitle: 'net48'
- task: VSBuild@1
displayName: 'Pack'
inputs:
solution: IndexRange.sln
configuration: Release
msbuildArgs: '/t:Pack /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@1
displayName: 'Publish NuGet packages'
condition: eq(variables['Agent.OS'], 'Windows_NT')
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: NuGet