@@ -23,14 +23,18 @@ phases:
23
23
- agent.os -equals linux
24
24
container : CentosContainer
25
25
steps :
26
+ - script : ./restore.sh
27
+ displayName : restore all projects
28
+ - script : ./build.sh -configuration $(BuildConfig) /p:SkipRIDAgnosticAssets=true -projects $(Build.SourcesDirectory)/src/Redist/Microsoft.ML.DnnImageFeaturizer.ModelRedist/Microsoft.ML.DnnImageFeaturizer.ModelRedist.proj
29
+ displayName : build redist
26
30
# Only build native assets to avoid conflicts.
27
- - script : ./build.sh -buildNative - $(BuildConfig) -skipRIDAgnosticAssets
31
+ - script : ./build.sh -configuration $(BuildConfig) -projects $(Build.SourcesDirectory)/src/Native/Native.proj /p:TargetArchitecture=x64
28
32
displayName : Build
29
33
30
34
- task : PublishBuildArtifacts@1
31
35
displayName : Publish Linux package assets
32
36
inputs :
33
- pathToPublish : $(Build.SourcesDirectory)/bin/obj/packages
37
+ pathToPublish : $(Build.SourcesDirectory)/artifacts/pkgassets
34
38
artifactName : PackageAssets
35
39
artifactType : container
36
40
@@ -46,23 +50,26 @@ phases:
46
50
queue :
47
51
name : Hosted macOS
48
52
steps :
49
- # Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/1811
50
53
- script : |
51
54
brew uninstall [email protected] |
52
55
brew uninstall [email protected] |
53
56
brew untap local/openssl |
54
57
brew untap local/python2
55
58
displayName: MacOS Homebrew bug Workaround
56
- - script : brew update && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
59
+ -
script :
brew update && brew unlink [email protected] && brew install mono-libgdiplus && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
57
60
displayName : Install build dependencies
61
+ - script : ./restore.sh
62
+ displayName : restore all projects
63
+ - script : ./build.sh -configuration $(BuildConfig) /p:SkipRIDAgnosticAssets=true -projects $(Build.SourcesDirectory)/src/Redist/Microsoft.ML.DnnImageFeaturizer.ModelRedist/Microsoft.ML.DnnImageFeaturizer.ModelRedist.proj
64
+ displayName : build redist
58
65
# Only build native assets to avoid conflicts.
59
- - script : ./build.sh -buildNative - $(BuildConfig) -skipRIDAgnosticAssets
66
+ - script : ./build.sh -projects $(Build.SourcesDirectory)/src/Native/Native.proj -configuration $(BuildConfig) /p:TargetArchitecture=x64
60
67
displayName : Build
61
68
62
69
- task : PublishBuildArtifacts@1
63
70
displayName : Publish macOS package assets
64
71
inputs :
65
- pathToPublish : $(Build.SourcesDirectory)/bin/obj/packages
72
+ pathToPublish : $(Build.SourcesDirectory)/artifacts/pkgassets
66
73
artifactName : PackageAssets
67
74
artifactType : container
68
75
@@ -95,27 +102,26 @@ phases:
95
102
continueOnError : false
96
103
condition : and(succeeded(), in(variables._SignType, 'real', 'test'))
97
104
105
+ - script : ./restore.cmd
106
+ displayName : restore all projects
107
+ - script : ./build.cmd -configuration $(BuildConfig) /p:SkipRIDAgnosticAssets=true -projects $(Build.SourcesDirectory)/src/Redist/Microsoft.ML.DnnImageFeaturizer.ModelRedist/Microsoft.ML.DnnImageFeaturizer.ModelRedist.proj
108
+ displayName : build redist
98
109
# Only build native assets to avoid conflicts.
99
- - script : ./build.cmd -buildNative - $(BuildConfig) -buildArch =x86 -skipRIDAgnosticAssets
110
+ - script : ./build.cmd -projects $(Build.SourcesDirectory)/src/Native/Native.proj -configuration $(BuildConfig) /p:TargetArchitecture =x86
100
111
displayName : Build
101
112
102
- - task : MSBuild@1
103
- displayName : Sign Windows_x86 Binaries
104
- inputs :
105
- solution : build/sign.proj
106
- msbuildArguments : /p:SignType=$(_SignType)
107
- msbuildVersion : 15.0
108
- continueOnError : false
113
+ - script : ./sign.cmd -configuration $(BuildConfig) /p:TargetArchitecture=x86 /p:SignBinaries=true
114
+ displayName : sign binaries
109
115
110
116
- task : PublishBuildArtifacts@1
111
117
displayName : Publish Windows_x86 package assets
112
118
inputs :
113
- pathToPublish : $(Build.SourcesDirectory)/bin/obj/packages
119
+ pathToPublish : $(Build.SourcesDirectory)/artifacts/pkgassets
114
120
artifactName : PackageAssets
115
121
artifactType : container
116
122
117
123
# Terminate all dotnet build processes.
118
- - script : $(Build.SourcesDirectory)/Tools/dotnetcli /dotnet.exe build-server shutdown
124
+ - script : $(Build.SourcesDirectory)/.dotnet /dotnet.exe build-server shutdown
119
125
displayName : Dotnet Server Shutdown
120
126
121
127
# ###############################################################################
@@ -148,7 +154,7 @@ phases:
148
154
condition : and(succeeded(), in(variables._SignType, 'real', 'test'))
149
155
150
156
# Build both native and managed assets.
151
- - script : ./build.cmd -$(BuildConfig)
157
+ - script : ./build.cmd -configuration $(BuildConfig) /p:TargetArchitecture=x64
152
158
displayName : Build
153
159
154
160
- task : ComponentGovernanceComponentDetection@0
@@ -158,23 +164,18 @@ phases:
158
164
alertWarningLevel : ' High'
159
165
160
166
161
- - task : MSBuild@1
162
- displayName : Sign Windows_x64 Binaries
163
- inputs :
164
- solution : build/sign.proj
165
- msbuildArguments : /p:SignType=$(_SignType)
166
- msbuildVersion : 15.0
167
- continueOnError : false
167
+ - script : ./sign.cmd -configuration $(BuildConfig) /p:TargetArchitecture=x64 /p:SignBinaries=true
168
+ displayName : sign binaries
168
169
169
170
- task : PublishBuildArtifacts@1
170
171
displayName : Publish Windows_x64 package assets
171
172
inputs :
172
- pathToPublish : $(Build.SourcesDirectory)/bin/obj/packages
173
+ pathToPublish : $(Build.SourcesDirectory)/artifacts/pkgassets
173
174
artifactName : PackageAssets
174
175
artifactType : container
175
176
176
177
# Terminate all dotnet build processes.
177
- - script : $(Build.SourcesDirectory)/Tools/dotnetcli /dotnet.exe build-server shutdown
178
+ - script : $(Build.SourcesDirectory)/.dotnet /dotnet.exe build-server shutdown
178
179
displayName : Dotnet Server Shutdown
179
180
180
181
# ###############################################################################
@@ -220,31 +221,27 @@ phases:
220
221
displayName : Download package assets
221
222
inputs :
222
223
artifactName : PackageAssets
223
- downloadPath : $(Build.SourcesDirectory)/bin/obj/packages
224
+ downloadPath : $(Build.SourcesDirectory)/artifacts/pkgassets
224
225
225
226
# Workaround https://github.com/Microsoft/vsts-tasks/issues/6739
226
227
- task : CopyFiles@2
227
228
displayName : Copy package assets to correct folder
228
229
inputs :
229
- sourceFolder : $(Build.SourcesDirectory)/bin/obj/packages /PackageAssets
230
- targetFolder : $(Build.SourcesDirectory)/bin/obj/packages
230
+ sourceFolder : $(Build.SourcesDirectory)/artifacts/pkgassets /PackageAssets
231
+ targetFolder : $(Build.SourcesDirectory)/artifacts/pkgassets
231
232
232
- - script : ./build.cmd -buildPackages
233
- displayName : Create Packages
233
+ - script : ./build.cmd -pack -configuration $(BuildConfig)
234
+ displayName : Build Packages
234
235
235
- - task : MSBuild@1
236
- displayName : Sign Packages
237
- inputs :
238
- solution : build/sign.proj
239
- msbuildArguments : /p:SignType=$(_SignType) /p:SignNugetPackages=true
240
- msbuildVersion : 15.0
236
+ - script : ./sign.cmd /p:SignNugetPackages=true
237
+ displayName : sign packages
241
238
continueOnError : false
242
239
243
240
- task : NuGetAuthenticate@0
244
241
inputs :
245
242
nuGetServiceConnections : machinelearning-dnceng-public-feed # To allow publishing to a feed of another organization
246
243
247
- - script : Tools\dotnetcli \dotnet msbuild build\publish.proj /t:PublishPackages /p:NuGetFeedUrl=$(_AzureDevopsFeedUrl) /p:NuGetApiKey=AzureArtifacts
244
+ - script : $(Build.SourcesDirectory)\.dotnet \dotnet.exe msbuild build\publish.proj /t:PublishPackages /p:NuGetFeedUrl=$(_AzureDevopsFeedUrl) /p:NuGetApiKey=AzureArtifacts
248
245
displayName : Publish Packages to AzureDevOps Feed
249
246
250
247
- task : MSBuild@1
@@ -264,5 +261,5 @@ phases:
264
261
continueOnError : true
265
262
266
263
# Terminate all dotnet build processes.
267
- - script : $(Build.SourcesDirectory)/Tools/dotnetcli /dotnet.exe build-server shutdown
264
+ - script : $(Build.SourcesDirectory)/.dotnet /dotnet.exe build-server shutdown
268
265
displayName : Dotnet Server Shutdown
0 commit comments