@@ -304,6 +304,48 @@ jobs:
304304 eq(variables['monoContainsChange'], true),
305305 eq(variables['isFullMatrix'], true))
306306
307+ #
308+ # Build for Browser/wasm, with EnableAggressiveTrimming=true
309+ #
310+ - template : /eng/pipelines/common/platform-matrix.yml
311+ parameters :
312+ jobTemplate : /eng/pipelines/common/global-build-job.yml
313+ helixQueuesTemplate : /eng/pipelines/libraries/helix-queues-setup.yml
314+ buildConfig : Release
315+ runtimeFlavor : mono
316+ platforms :
317+ - Browser_wasm
318+ variables :
319+ # map dependencies variables to local variables
320+ - name : librariesContainsChange
321+ value : $[ dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'] ]
322+ - name : monoContainsChange
323+ value : $[ dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'] ]
324+ jobParameters :
325+ testGroup : innerloop
326+ nameSuffix : AllSubsets_Mono_EAT
327+ buildArgs : -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:EnableAggressiveTrimming=true /p:BuildAOTTestsOnHelix=true /p:RunAOTCompilation=false
328+ timeoutInMinutes : 180
329+ condition : >-
330+ or(
331+ eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
332+ eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true),
333+ eq(dependencies.evaluate_paths.outputs['SetPathVars_installer.containsChange'], true),
334+ eq(variables['isFullMatrix'], true))
335+ # extra steps, run tests
336+ extraStepsTemplate : /eng/pipelines/libraries/helix.yml
337+ extraStepsParameters :
338+ creator : dotnet-bot
339+ testRunNamePrefixSuffix : Mono_$(_BuildConfig)
340+ extraHelixArguments : /p:NeedsToBuildWasmAppsOnHelix=true
341+ scenarios :
342+ - normal
343+ condition : >-
344+ or(
345+ eq(variables['librariesContainsChange'], true),
346+ eq(variables['monoContainsChange'], true),
347+ eq(variables['isFullMatrix'], true))
348+
307349# Build and test libraries under single-file publishing
308350- template : /eng/pipelines/common/platform-matrix.yml
309351 parameters :
0 commit comments