-
Notifications
You must be signed in to change notification settings - Fork 2
/
.azure-pipelines.yaml
107 lines (91 loc) · 2.83 KB
/
.azure-pipelines.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
trigger:
branches:
include: [ main ]
pr:
branches:
include: [ main ]
variables:
Cake_Settings_EnableScriptCache: true
Cake_Settings_ShowProcessCommandLine: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_ROLL_FORWARD: Major
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
jobs:
- job: build_docker
dependsOn: [ build_linux, build_mac, build_windows ]
pool:
vmImage: ubuntu-latest
container: dockfool/cake-docker:latest
steps:
- checkout: self
displayName: Checkout source
submodules: recursive
- task: Cache@2
displayName: Cache packages
inputs:
path: $(NUGET_PACKAGES)
key: $(Agent.OS)|nuget|.config/dotnet-tools.json,**/packages.lock.json
restoreKeys: $(Agent.OS)|nuget
- bash: dotnet tool restore && dotnet cake --verbosity=verbose
displayName: Cake build
- job: build_linux
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
displayName: Checkout source
submodules: recursive
- task: UseDotNet@2
displayName: Install dotnet
inputs:
# renovate: datasource=dotnet depName=dotnet-sdk
version: 8.0.403
- task: Cache@2
displayName: Cache packages
inputs:
path: $(NUGET_PACKAGES)
key: $(Agent.OS)|nuget|.config/dotnet-tools.json,**/packages.lock.json
restoreKeys: $(Agent.OS)|nuget
- bash: dotnet tool restore && dotnet cake --verbosity=verbose
displayName: Cake build
- job: build_mac
pool:
vmImage: macos-latest
steps:
- checkout: self
displayName: Checkout source
submodules: recursive
- task: UseDotNet@2
displayName: Install dotnet
inputs:
# renovate: datasource=dotnet depName=dotnet-sdk
version: 8.0.403
- task: Cache@2
displayName: Cache packages
inputs:
path: $(NUGET_PACKAGES)
key: $(Agent.OS)|nuget|.config/dotnet-tools.json,**/packages.lock.json
restoreKeys: $(Agent.OS)|nuget
- bash: dotnet tool restore && dotnet cake --verbosity=verbose
displayName: Cake build
- job: build_windows
pool:
vmImage: windows-latest
steps:
- checkout: self
displayName: Checkout source
submodules: recursive
- task: UseDotNet@2
displayName: Install dotnet
inputs:
# renovate: datasource=dotnet depName=dotnet-sdk
version: 8.0.403
- task: Cache@2
displayName: Cache packages
inputs:
path: $(NUGET_PACKAGES)
key: $(Agent.OS)|nuget|.config/dotnet-tools.json,**/packages.lock.json
restoreKeys: $(Agent.OS)|nuget
- pwsh: dotnet tool restore && dotnet cake --verbosity=verbose
displayName: Cake build