@@ -16,7 +16,6 @@ parameters:
16
16
hybridGlobalization : ' False'
17
17
isScenario : false
18
18
downloadSpecificBuild : null # buildId, pipeline, branchName, project
19
- crossBuild : false
20
19
runtimeRepoAlias : runtime
21
20
performanceRepoAlias : self
22
21
selfIsRuntime : true
37
36
# Test job depends on the corresponding build job
38
37
${{ if eq(parameters.downloadSpecificBuild.buildId, '') }} :
39
38
dependsOn :
40
- - ${{ if not(or( in(parameters.runtimeType, 'AndroidMono', 'AndroidCoreCLR', 'iOSMono', 'iOSNativeAOT', 'wasm'), and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) )) }} :
39
+ - ${{ if not(in(parameters.runtimeType, 'AndroidMono', 'AndroidCoreCLR', 'iOSMono', 'iOSNativeAOT', 'wasm', 'mono')) }} :
41
40
- ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, 'coreclr') }}
42
41
- ${{ if and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) }} :
43
42
- ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, 'mono') }}
@@ -56,20 +55,10 @@ jobs:
56
55
- ${{ 'build_ios_arm64_release_iOSNativeAOT' }}
57
56
58
57
variables :
59
- - name : _crossBuildPropertyArg
60
- value : ' '
61
- - ${{ if eq(parameters.crossBuild, true) }} :
62
- - name : _crossBuildPropertyArg
63
- value : ' -cross'
64
58
- name : librariesDownloadDir
65
59
value : $(Build.SourcesDirectory)/artifacts
66
60
- name : builtAppDir
67
61
value : $(Build.SourcesDirectory)
68
- - name : librariesOverrideArg
69
- value : ' '
70
- - ${{ if ne(parameters.liveLibrariesBuildConfig, '') }} :
71
- - name : librariesOverrideArg
72
- value : ' /p:LibrariesConfiguration=${{ parameters.liveLibrariesBuildConfig }}'
73
62
74
63
- name : buildConfigUpper
75
64
${{ if eq(parameters.buildConfig, 'debug') }} :
82
71
- ${{ if eq(parameters.osGroup, 'windows') }} :
83
72
- name : archiveExtension
84
73
value : ' .zip'
85
- - name : scriptExt
86
- value : ' .cmd'
87
74
- ${{ else }} :
88
75
- name : archiveExtension
89
76
value : ' .tar.gz'
90
- - name : scriptExt
91
- value : ' .sh'
92
77
93
78
- ${{ each variable in parameters.variables }} :
94
79
- ${{ variable }}
@@ -119,34 +104,13 @@ jobs:
119
104
artifactName : BrowserWasm
120
105
displayName : BrowserWasm
121
106
${{ insert }} : ${{ parameters.downloadSpecificBuild }}
122
-
123
- - script : >-
124
- mkdir -p $(librariesDownloadDir)/bin/wasm/wasm-data &&
125
- mkdir -p $(librariesDownloadDir)/bin/wasm/dotnet &&
126
- cp -r $(librariesDownloadDir)/BrowserWasm/staging/dotnet-latest/* $(librariesDownloadDir)/bin/wasm/dotnet &&
127
- cp -r $(librariesDownloadDir)/BrowserWasm/staging/built-nugets $(librariesDownloadDir)/bin/wasm &&
128
- cp src/mono/browser/test-main.js $(librariesDownloadDir)/bin/wasm/wasm-data/test-main.js &&
129
- find $(librariesDownloadDir)/bin/wasm -type d &&
130
- find $(librariesDownloadDir)/bin/wasm -type f -exec chmod 664 {} \;
131
- displayName: "Create wasm directory (Linux)"
132
107
- ${{ elseif and(eq(parameters.codeGenType, 'AOT'), not(eq(parameters.runtimeType, 'AndroidMono'))) }} :
133
- # Download mono AOT
134
- - template : /eng/pipelines/templates/download-artifact-step.yml
135
- parameters :
136
- unpackFolder : $(librariesDownloadDir)/bin
137
- artifactFileName : ' BuildArtifacts_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_$(buildConfigUpper)_coreclr$(archiveExtension)'
138
- artifactName : ' BuildArtifacts_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_$(buildConfigUpper)_coreclr'
139
- displayName : ' Runtime artifacts'
140
-
141
108
- template : /eng/pipelines/templates/download-artifact-step.yml
142
109
parameters :
143
110
unpackFolder : $(librariesDownloadDir)/LinuxMonoAOT
144
111
artifactFileName : LinuxMonoAOT${{ parameters.archType }}.tar.gz
145
112
artifactName : LinuxMonoAOT${{ parameters.archType }}
146
113
displayName : AOT Mono Artifacts
147
-
148
- - script : " mkdir -p $(librariesDownloadDir)/bin/aot;mkdir -p $(librariesDownloadDir)/bin/aot/pack;cp -r $(librariesDownloadDir)/LinuxMonoAOT/artifacts/bin/mono/linux.${{ parameters.archType }}.Release/cross/linux-${{ parameters.archType }}/* $(librariesDownloadDir)/bin/aot;cp -r $(librariesDownloadDir)/LinuxMonoAOT/artifacts/bin/microsoft.netcore.app.runtime.linux-${{ parameters.archType }}/Release/* $(librariesDownloadDir)/bin/aot/pack"
149
- displayName : " Create aot directory (Linux)"
150
114
- ${{ elseif in(parameters.runtimeType, 'coreclr', 'mono') }} :
151
115
- template : /eng/pipelines/templates/download-artifact-step.yml
152
116
parameters :
@@ -276,32 +240,4 @@ jobs:
276
240
artifactName : ' iOSNativeAOTArm64NoStripSymbolsBuildLog'
277
241
${{ if and(eq(parameters.runtimeType, 'iOSNativeAOT'), eq(parameters.iOSStripSymbols, 'True')) }} :
278
242
artifactName : ' iOSNativeAOTArm64StripSymbolsBuildLog'
279
- checkDownloadedFiles : true
280
-
281
- - ${{ if notIn(parameters.runtimeType, 'wasm', 'AndroidMono', 'AndroidCoreCLR', 'iOSMono', 'iOSNativeAOT') }} :
282
- - ${{ if ne(parameters.runtimeFlavor, 'Mono') }} :
283
- # Create Core_Root
284
- - script : $(Build.SourcesDirectory)/src/tests/build$(scriptExt) ${{ parameters.buildConfig }} ${{ parameters.archType }} generatelayoutonly $(librariesOverrideArg) $(_crossBuildPropertyArg)
285
- displayName : Create Core_Root
286
- - ${{ elseif ne(parameters.osGroup, 'windows') }} :
287
- - task : CopyFiles@2
288
- displayName : Create .dotnet-mono folder
289
- inputs :
290
- SourceFolder : $(librariesDownloadDir)/bin/testhost/${{ parameters.framework }}-${{ parameters.osGroup }}-$(buildConfigUpper)-${{ parameters.archType }}
291
- TargetFolder : $(Build.SourcesDirectory)/.dotnet-mono
292
- - task : CopyFiles@2
293
- displayName : Copy corerun to .dotnet-mono
294
- inputs :
295
- SourceFolder : $(librariesDownloadDir)/bin/coreclr/${{ parameters.osGroup }}.${{ parameters.archType }}.$(buildConfigUpper)
296
- Contents : ' corerun*'
297
- TargetFolder : $(Build.SourcesDirectory)/.dotnet-mono/shared/Microsoft.NETCore.App/$(productVersion)
298
-
299
- - ${{ if and(eq(parameters.isScenario, true), eq(parameters.runtimeType, 'wasm')) }} :
300
- - script : >-
301
- mkdir -p $(librariesDownloadDir)/bin/wasm/data &&
302
- cp -r $(librariesDownloadDir)/BrowserWasm/staging/dotnet-latest $(librariesDownloadDir)/bin/wasm &&
303
- cp -r $(librariesDownloadDir)/BrowserWasm/staging/built-nugets $(librariesDownloadDir)/bin/wasm &&
304
- cp src/mono/browser/test-main.js $(librariesDownloadDir)/bin/wasm/data/test-main.js &&
305
- find $(librariesDownloadDir)/bin/wasm -type f -exec chmod 664 {} \;
306
- displayName: "Create wasm directory (Linux)"
307
- condition: succeeded()
243
+ checkDownloadedFiles : true
0 commit comments