@@ -15,9 +15,21 @@ parameters:
1515- name : sourceIndexParams
1616 type : object
1717 default : []
18+ - name : publishAssets
19+ type : boolean
20+ default : false
21+ - name : enableMicrobuild
22+ type : boolean
23+ default : false
1824- name : runAsPublic
1925 type : boolean
2026 default : true
27+ - name : helixInternal
28+ type : string
29+ default : ' '
30+ - name : HelixAccessToken
31+ type : string
32+ default : ' '
2133- name : creator
2234 type : string
2335 default : ' maui'
@@ -35,20 +47,9 @@ parameters:
3547 default :
3648 - Debug
3749 - Release
38- - name : buildPlatforms
50+ - name : helixPool
3951 type : object
40- default :
41- - name : NetCore-Public
42- image : 1es-windows-2022
43- os : Windows
44- buildScript : $(_helixScript)
45- sln : $(buildProjects)
46- - name : Azure Pipelines
47- vmImage : $(HostedMacImage)
48- os : macOS
49- buildScript : $(_helixScriptMacOS)
50- sln : $(buildProjectsMac)
51-
52+
5253stages :
5354- stage : HelixTests
5455 displayName : Run Helix Unit Tests
@@ -58,13 +59,10 @@ stages:
5859 - template : ${{ iif(eq(parameters.runAsPublic, 'true'), '/eng/common/templates/jobs/jobs.yml@self', '/eng/common/templates-official/jobs/jobs.yml@self') }}
5960 parameters :
6061 helixRepo : dotnet/maui
61- pool :
62- name : NetCore-Public
63- vmImage : 1es-windows-2022
64- os : windows
65- enableMicrobuild : true
62+ pool : ${{ parameters.helixPool }}
63+ enableMicrobuild : ${{ parameters.enableMicrobuild }}
6664 enablePublishUsingPipelines : true
67- enablePublishBuildAssets : true
65+ enablePublishBuildAssets : ${{ parameters.publishAssets }}
6866 enableTelemetry : true
6967 enableSourceBuild : ${{ parameters.enableSourceBuild }}
7068 enableSourceIndex : ${{ parameters.enableSourceIndex }}
@@ -89,7 +87,9 @@ stages:
8987 - script : $(_buildScript) -restore -build -configuration ${{ BuildConfiguration }} -projects "${{ parameters.buildTaskProjects }}" /p:ArchiveTests=false /p:TreatWarningsAsErrors=$(TreatWarningsAsErrors) /bl:$(Build.Arcade.LogsPath)${{ BuildConfiguration }}/buildtasks.binlog $(_OfficialBuildIdArgs)
9088 displayName : 🛠️ Build BuildTasks
9189
92- - script : $(_msbuildCommand) "${{ parameters.helixProject }}" -warnAsError 0 -restore /p:Configuration=${{ BuildConfiguration }} /p:TestRunNameSuffix="_${{ BuildConfiguration }}" /bl:$(Build.Arcade.LogsPath)${{ BuildConfiguration }}/helix_tests.binlog ${{ parameters.extraHelixArguments }}
90+ - script : $(_msbuildCommand) "${{ parameters.helixProject }}" -warnAsError 0 -restore /p:Configuration=${{ BuildConfiguration }} /p:HelixInternal="${{ parameters.helixInternal }}" /p: TestRunNameSuffix="_${{ BuildConfiguration }}" /bl:$(Build.Arcade.LogsPath)${{ BuildConfiguration }}/helix_tests.binlog ${{ parameters.extraHelixArguments }}
9391 displayName : Run Helix Tests
9492 env :
9593 SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
94+ HelixAccessToken : ${{ parameters.HelixAccessToken }}
95+
0 commit comments