Skip to content

Commit 0cb73e8

Browse files
authored
Add tizen armel build CI for pull request (#56281)
* Add tizen amrel build CI * Fix some errors * Fix platform-matrix.yml * Skip tests for tizen-armel * Fix typo * Introduce a paramter to skip tests * Update osGroup to Tizen * Fix an error * Update fix
1 parent 1a214ca commit 0cb73e8

5 files changed

Lines changed: 43 additions & 7 deletions

File tree

eng/native/init-distro-rid.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ initNonPortableDistroRid()
4141
# We have forced __PortableBuild=0. This is because -portablebuld
4242
# has been passed as false.
4343
if (( isPortable == 0 )); then
44-
if [ "${ID}" = "rhel" || "${ID}" = "rocky" ]; then
44+
if [ "${ID}" = "rhel" ] || [ "${ID}" = "rocky" ]; then
4545
# remove the last version digit
4646
VERSION_ID="${VERSION_ID%.*}"
4747
fi

eng/pipelines/common/platform-matrix.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,33 @@ jobs:
654654
helixQueueGroup: ${{ parameters.helixQueueGroup }}
655655
${{ insert }}: ${{ parameters.jobParameters }}
656656

657+
# Tizen armel
658+
659+
- ${{ if containsValue(parameters.platforms, 'Tizen_armel') }}:
660+
- template: xplat-setup.yml
661+
parameters:
662+
jobTemplate: ${{ parameters.jobTemplate }}
663+
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
664+
variables: ${{ parameters.variables }}
665+
osGroup: Tizen
666+
archType: armel
667+
targetRid: tizen-armel
668+
platform: Tizen_armel
669+
container:
670+
image: ubuntu-18.04-cross-armel-tizen-20210719212651-8b02f56
671+
registry: mcr
672+
jobParameters:
673+
runtimeFlavor: ${{ parameters.runtimeFlavor }}
674+
stagedBuild: ${{ parameters.stagedBuild }}
675+
buildConfig: ${{ parameters.buildConfig }}
676+
${{ if eq(parameters.passPlatforms, true) }}:
677+
platforms: ${{ parameters.platforms }}
678+
helixQueueGroup: ${{ parameters.helixQueueGroup }}
679+
crossBuild: true
680+
crossrootfsDir: '/crossrootfs/armel'
681+
disableClrTest: true
682+
${{ insert }}: ${{ parameters.jobParameters }}
683+
657684
# Windows x64
658685

659686
- ${{ if or(containsValue(parameters.platforms, 'windows_x64'), in(parameters.platformGroup, 'all', 'gcstress')) }}:

eng/pipelines/common/xplat-setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ jobs:
114114
${{ if eq(parameters.jobParameters.pool, '') }}:
115115
pool:
116116
# Public Linux Build Pool
117-
${{ if and(or(in(parameters.osGroup, 'Linux', 'FreeBSD', 'Android'), eq(parameters.hostedOs, 'Linux')), eq(variables['System.TeamProject'], 'public')) }}:
117+
${{ if and(or(in(parameters.osGroup, 'Linux', 'FreeBSD', 'Android', 'Tizen'), eq(parameters.hostedOs, 'Linux')), eq(variables['System.TeamProject'], 'public')) }}:
118118
name: NetCore1ESPool-Public
119119
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
120120

121121
# Official Build Linux Pool
122-
${{ if and(or(in(parameters.osGroup, 'Linux', 'FreeBSD', 'Browser', 'Android'), eq(parameters.hostedOs, 'Linux')), ne(variables['System.TeamProject'], 'public')) }}:
122+
${{ if and(or(in(parameters.osGroup, 'Linux', 'FreeBSD', 'Browser', 'Android', 'Tizen'), eq(parameters.hostedOs, 'Linux')), ne(variables['System.TeamProject'], 'public')) }}:
123123
name: NetCore1ESPool-Internal
124124
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
125125

eng/pipelines/coreclr/templates/build-job.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
crossBuild: false
1010
crossrootfsDir: ''
1111
dependOnEvaluatePaths: false
12+
disableClrTest: false
1213
isOfficialBuild: false
1314
osGroup: ''
1415
osSubgroup: ''
@@ -38,6 +39,7 @@ jobs:
3839
pool: ${{ parameters.pool }}
3940
condition: ${{ parameters.condition }}
4041
dependOnEvaluatePaths: ${{ parameters.dependOnEvaluatePaths }}
42+
disableClrTest: ${{ parameters.disableClrTest }}
4143
pgoType: ${{ parameters.pgoType }}
4244

4345
# Compute job name from template parameters
@@ -141,6 +143,12 @@ jobs:
141143
- name: SignType
142144
value: $[ coalesce(variables.OfficialSignType, 'real') ]
143145

146+
- name: clrRuntimePortableBuildArg
147+
value: ''
148+
- ${{ if eq(parameters.archType, 'armel' )}}:
149+
- name: clrRuntimePortableBuildArg
150+
value: '-portablebuild=false'
151+
144152
- ${{ parameters.variables }}
145153

146154
steps:
@@ -188,7 +196,7 @@ jobs:
188196

189197
# Build CoreCLR Runtime
190198
- ${{ if ne(parameters.osGroup, 'windows') }}:
191-
- script: $(Build.SourcesDirectory)/src/coreclr/build-runtime$(scriptExt) $(buildConfig) $(archType) $(crossArg) $(osArg) -ci $(compilerArg) $(clrBuildPALTestsBuildArg) $(pgoInstrumentArg) $(officialBuildIdArg) $(clrInterpreterBuildArg)
199+
- script: $(Build.SourcesDirectory)/src/coreclr/build-runtime$(scriptExt) $(buildConfig) $(archType) $(crossArg) $(osArg) -ci $(compilerArg) $(clrBuildPALTestsBuildArg) $(pgoInstrumentArg) $(officialBuildIdArg) $(clrInterpreterBuildArg) $(clrRuntimePortableBuildArg)
192200
displayName: Build CoreCLR Runtime
193201
- ${{ if eq(parameters.osGroup, 'windows') }}:
194202
- script: set __TestIntermediateDir=int&&$(Build.SourcesDirectory)/src/coreclr/build-runtime$(scriptExt) $(buildConfig) $(archType) -ci $(enforcePgoArg) $(pgoInstrumentArg) $(officialBuildIdArg) $(clrInterpreterBuildArg)
@@ -210,7 +218,7 @@ jobs:
210218
displayName: Run CoreCLR Tools unit tests
211219

212220
# Build native test components
213-
- ${{ if ne(parameters.isOfficialBuild, true) }}:
221+
- ${{ if and(ne(parameters.isOfficialBuild, true), ne(parameters.disableClrTest, true)) }}:
214222
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) skipmanaged skipgeneratelayout $(buildConfig) $(archType) $(crossArg) $(osArg) $(priorityArg) $(compilerArg)
215223
displayName: Build native test components
216224

@@ -257,7 +265,7 @@ jobs:
257265
condition: always()
258266

259267
# Builds using gcc are not tested, and clrTools unitests do not publish the build artifacts
260-
- ${{ if and(ne(parameters.compilerName, 'gcc'), ne(parameters.testGroup, 'clrTools')) }}:
268+
- ${{ if and(ne(parameters.compilerName, 'gcc'), ne(parameters.testGroup, 'clrTools'), ne(parameters.disableClrTest, true)) }}:
261269
# Publish product output directory for consumption by tests.
262270
- template: /eng/pipelines/common/upload-artifact-step.yml
263271
parameters:
@@ -276,7 +284,7 @@ jobs:
276284
osGroup: ${{ parameters.osGroup }}
277285
osSubgroup: ${{ parameters.osSubgroup }}
278286

279-
- ${{ if and(ne(parameters.compilerName, 'gcc'), ne(parameters.testGroup, ''), ne(parameters.testGroup, 'clrTools')) }}:
287+
- ${{ if and(ne(parameters.compilerName, 'gcc'), ne(parameters.testGroup, ''), ne(parameters.testGroup, 'clrTools'), ne(parameters.disableClrTest, true)) }}:
280288
# Publish test native components for consumption by test execution.
281289
- ${{ if and(ne(parameters.isOfficialBuild, true), eq(parameters.pgoType, '')) }}:
282290
- template: /eng/pipelines/common/upload-artifact-step.yml

eng/pipelines/runtime.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
- Linux_musl_arm64
8080
- Linux_musl_x64
8181
- OSX_arm64
82+
- Tizen_armel
8283
- windows_x86
8384
- windows_x64
8485
- windows_arm

0 commit comments

Comments
 (0)