7
7
batch : true
8
8
branches :
9
9
include :
10
- - blazor-wasm
11
- - master
10
+ - main
12
11
- release/*
13
12
- internal/release/*
14
13
@@ -33,12 +32,13 @@ variables:
33
32
- name : _DotNetValidationArtifactsCategory
34
33
value : .NETCORE
35
34
- name : PostBuildSign
36
- value : false
35
+ value : true
37
36
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
38
37
- name : _BuildArgs
39
38
value : /p:TeamName=$(_TeamName)
40
39
/p:OfficialBuildId=$(Build.BuildNumber)
41
40
/p:SkipTestBuild=true
41
+ /p:PostBuildSign=$(PostBuildSign)
42
42
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
43
43
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
44
44
- group : DotNet-Blob-Feed
@@ -67,7 +67,7 @@ variables:
67
67
value : -ExcludeCIBinaryLog
68
68
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }} :
69
69
- name : _BuildArgs
70
- value : ' /p:SkipTestBuild=true'
70
+ value : ' /p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign) '
71
71
- name : _PublishArgs
72
72
value : ' '
73
73
# Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
@@ -95,13 +95,15 @@ variables:
95
95
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
96
96
- group : DotNet-MSRC-Storage
97
97
- name : _InternalRuntimeDownloadArgs
98
- value : -DotNetRuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet -DotNetRuntimeSourceFeedKey
99
- $(dotnetclimsrc-read-sas-token-base64) /p:DotNetAssetRootAccessTokenSuffix=' $(dotnetclimsrc-read-sas-token-base64)'
100
- # The code signing doesn't use the aspnet build scripts, so the msbuild parameters have
101
- # to be passed directly. This is awkward, since we pass the same info above, but we have
102
- # to have it in two different forms
98
+ value : -RuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet
99
+ -RuntimeSourceFeedKey $(dotnetclimsrc-read-sas-token-base64)
100
+ /p:DotNetAssetRootAccessTokenSuffix='$(dotnetclimsrc-read-sas-token-base64)'
101
+ # The code signing doesn't use the aspnet build scripts, so the msbuild parameters have to be passed directly. This
102
+ # is awkward but necessary because the eng/common/ build scripts don't add the msbuild properties automatically.
103
103
- name : _InternalRuntimeDownloadCodeSignArgs
104
- value : /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
104
+ value : $(_InternalRuntimeDownloadArgs)
105
+ /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet
106
+ /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
105
107
- group : DotNet-HelixApi-Access
106
108
- name : _UseHelixOpenQueues
107
109
value : ' false'
@@ -151,7 +153,7 @@ stages:
151
153
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even
152
154
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing.
153
155
# The sign settings have been configured to
154
- - script : ./build.cmd
156
+ - script : ./eng/ build.cmd
155
157
-ci
156
158
-arch x64
157
159
-pack
@@ -163,7 +165,7 @@ stages:
163
165
164
166
# Build the x86 shared framework
165
167
# This is going to actually build x86 native assets.
166
- - script : ./build.cmd
168
+ - script : ./eng/ build.cmd
167
169
-ci
168
170
-noBuildRepoTasks
169
171
-arch x86
@@ -191,7 +193,7 @@ stages:
191
193
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If
192
194
# https://github.com/dotnet/arcade/issues/1957 is resolved, consider running code-signing inline with the other
193
195
# previous steps. Sign check is disabled because it is run in a separate step below, after installers are built.
194
- - script : ./build.cmd
196
+ - script : ./eng/ build.cmd
195
197
-ci
196
198
-noBuildRepoTasks
197
199
-noBuildNative
@@ -204,7 +206,7 @@ stages:
204
206
displayName : Code sign packages
205
207
206
208
# Windows installers bundle both x86 and x64 assets
207
- - script : ./build.cmd
209
+ - script : ./eng/ build.cmd
208
210
-ci
209
211
-noBuildRepoTasks
210
212
-sign
@@ -285,7 +287,7 @@ stages:
285
287
- name : Windows_arm64_Installers
286
288
path : artifacts/installers/
287
289
steps :
288
- - script : ./build.cmd
290
+ - script : ./eng/ build.cmd
289
291
-ci
290
292
-arch arm64
291
293
-sign
@@ -300,7 +302,7 @@ stages:
300
302
displayName : Build ARM64
301
303
302
304
# Windows installers bundle for arm64
303
- - script : ./build.cmd
305
+ - script : ./eng/ build.cmd
304
306
-ci
305
307
-noBuildRepoTasks
306
308
-arch arm64
@@ -326,11 +328,43 @@ stages:
326
328
publishFeedCredentials : ' DevDiv - VS package feed'
327
329
328
330
329
- # Build MacOS
331
+ # Build MacOS arm64
332
+ - template : jobs/default-build.yml
333
+ parameters :
334
+ jobName : MacOs_arm64_build
335
+ jobDisplayName : " Build: macOS arm64"
336
+ agentOs : macOs
337
+ buildArgs :
338
+ --arch arm64
339
+ --pack
340
+ --all
341
+ --no-build-nodejs
342
+ --no-build-java
343
+ -p:OnlyPackPlatformSpecificPackages=true
344
+ -p:AssetManifestFileName=aspnetcore-MacOS_arm64.xml
345
+ $(_BuildArgs)
346
+ $(_PublishArgs)
347
+ $(_InternalRuntimeDownloadArgs)
348
+ installNodeJs : false
349
+ installJdk : false
350
+ artifacts :
351
+ - name : MacOS_arm64_Logs
352
+ path : artifacts/log/
353
+ publishOnError : true
354
+ includeForks : true
355
+ - name : MacOS_arm64_Packages
356
+ path : artifacts/packages/
357
+
358
+ - ${{ if ne(variables['PostBuildSign'], 'true') }} :
359
+ - template : jobs/codesign-xplat.yml
360
+ parameters :
361
+ inputName : MacOS_arm64
362
+
363
+ # Build MacOS x64
330
364
- template : jobs/default-build.yml
331
365
parameters :
332
366
jobName : MacOs_x64_build
333
- jobDisplayName : " Build: macOS"
367
+ jobDisplayName : " Build: macOS x64 "
334
368
agentOs : macOs
335
369
buildArgs :
336
370
--pack
@@ -365,7 +399,7 @@ stages:
365
399
agentOs : Linux
366
400
useHostedUbuntu : false
367
401
steps :
368
- - script : ./build.sh
402
+ - script : ./eng/ build.sh
369
403
--ci
370
404
--arch x64
371
405
--pack
@@ -375,7 +409,6 @@ stages:
375
409
-p:OnlyPackPlatformSpecificPackages=true
376
410
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
377
411
$(_BuildArgs)
378
- $(_PublishArgs)
379
412
$(_InternalRuntimeDownloadArgs)
380
413
displayName : Run build.sh
381
414
- script : |
@@ -405,7 +438,7 @@ stages:
405
438
-p:OnlyPackPlatformSpecificPackages=true \
406
439
-p:BuildRuntimeArchive=false \
407
440
-p:LinuxInstallerType=rpm \
408
- -p:AssetManifestFileName=aspnetcore-Linux_x64-installers .xml \
441
+ -p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
409
442
$(_BuildArgs) \
410
443
$(_PublishArgs) \
411
444
$(_InternalRuntimeDownloadArgs)
@@ -496,7 +529,7 @@ stages:
496
529
jobDisplayName : " Build: Linux Musl x64"
497
530
agentOs : Linux
498
531
container : mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.9-WithNode-0fc54a3-20190918214015
499
- buildScript : ./build.sh
532
+ buildScript : ./eng/ build.sh
500
533
buildArgs :
501
534
--arch x64
502
535
--os-name linux-musl
@@ -533,7 +566,7 @@ stages:
533
566
agentOs : Linux
534
567
useHostedUbuntu : false
535
568
container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm-alpine-20200827125937-14441ae
536
- buildScript : ./build.sh
569
+ buildScript : ./eng/ build.sh
537
570
buildArgs :
538
571
--arch arm
539
572
--os-name linux-musl
@@ -555,9 +588,11 @@ stages:
555
588
includeForks : true
556
589
- name : Linux_musl_arm_Packages
557
590
path : artifacts/packages/
558
- - template : jobs/codesign-xplat.yml
559
- parameters :
560
- inputName : Linux_musl_arm
591
+
592
+ - ${{ if ne(variables['PostBuildSign'], 'true') }} :
593
+ - template : jobs/codesign-xplat.yml
594
+ parameters :
595
+ inputName : Linux_musl_arm
561
596
562
597
# Build Linux Musl ARM64
563
598
- template : jobs/default-build.yml
@@ -567,7 +602,7 @@ stages:
567
602
agentOs : Linux
568
603
useHostedUbuntu : false
569
604
container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20200413125008-406629a
570
- buildScript : ./build.sh
605
+ buildScript : ./eng/ build.sh
571
606
buildArgs :
572
607
--arch arm64
573
608
--os-name linux-musl
@@ -633,8 +668,9 @@ stages:
633
668
jobDisplayName : " Test: Templates - Windows Server 2016 x64"
634
669
agentOs : Windows
635
670
isTestingJob : true
671
+ testRunTitle : Templates-$(AgentOsName)-$(BuildConfiguration)
636
672
steps :
637
- - script : ./build.cmd -ci -nobl -all -pack $(_InternalRuntimeDownloadArgs)
673
+ - script : ./eng/ build.cmd -ci -nobl -all -pack $(_InternalRuntimeDownloadArgs)
638
674
displayName : Build Repo
639
675
- script : ./src/ProjectTemplates/build.cmd -ci -nobl -noBuildRepoTasks -pack -NoRestore -noBuildNative -NoBuilddeps "/p:RunTemplateTests=true"
640
676
displayName : Pack Templates
@@ -709,13 +745,13 @@ stages:
709
745
timeoutInMinutes : 240
710
746
steps :
711
747
# Build the shared framework
712
- - script : ./build.cmd -ci -nobl -all -pack -arch x64
748
+ - script : ./eng/ build.cmd -ci -nobl -all -pack -arch x64
713
749
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
714
750
displayName : Build shared fx
715
- - script : ./build.cmd -ci -nobl -noBuildRepoTasks -restore -noBuild -noBuildNative -projects src/Grpc/**/*.csproj
751
+ - script : ./eng/ build.cmd -ci -nobl -noBuildRepoTasks -restore -noBuild -noBuildNative -projects src/Grpc/**/*.csproj
716
752
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
717
753
displayName : Restore interop projects
718
- - script : ./build.cmd -ci -nobl -noBuildRepoTasks -noRestore -test -all -noBuildNative -projects eng\helix\helix.proj
754
+ - script : ./eng/ build.cmd -ci -nobl -noBuildRepoTasks -noRestore -test -all -noBuildNative -projects eng\helix\helix.proj
719
755
/p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildInteropProjects=true /p:RunTemplateTests=true
720
756
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
721
757
displayName : Run build.cmd helix target
@@ -787,13 +823,23 @@ stages:
787
823
- Windows_arm_build
788
824
- Windows_arm64_build
789
825
- ${{ if ne(variables['PostBuildSign'], 'true') }} :
826
+ - CodeSign_Xplat_MacOS_arm64
790
827
- CodeSign_Xplat_MacOS_x64
791
828
- CodeSign_Xplat_Linux_x64
792
829
- CodeSign_Xplat_Linux_arm
793
830
- CodeSign_Xplat_Linux_arm64
794
831
- CodeSign_Xplat_Linux_musl_x64
795
832
- CodeSign_Xplat_Linux_musl_arm
796
833
- CodeSign_Xplat_Linux_musl_arm64
834
+ - ${{ if eq(variables['PostBuildSign'], 'true') }} :
835
+ - MacOs_arm64_build
836
+ - MacOs_x64_build
837
+ - Linux_x64_build
838
+ - Linux_arm_build
839
+ - Linux_arm64_build
840
+ - Linux_musl_x64_build
841
+ - Linux_musl_arm_build
842
+ - Linux_musl_arm64_build
797
843
# In addition to the dependencies above, ensure the build was successful overall.
798
844
- Source_Build
799
845
pool :
0 commit comments