Skip to content

Commit 22a08b7

Browse files
Alexey-Rivkinyosefe
authored andcommitted
AZP: Add build test on ARM
Split the Build stage matrix per platform. Use a shared template to reduce code duplication. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
1 parent 9ded802 commit 22a08b7

File tree

2 files changed

+91
-63
lines changed

2 files changed

+91
-63
lines changed

buildlib/pr/build_job.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
parameters:
2+
name:
3+
demands: []
4+
displayName:
5+
6+
jobs:
7+
- job: ${{ parameters.name }}
8+
pool:
9+
name: MLNX
10+
demands: ${{ parameters.demands }}
11+
container: $[ variables['CONTAINER'] ]
12+
strategy:
13+
# x86_64 matrix
14+
${{ if contains(parameters.name, 'x86_64') }}:
15+
matrix:
16+
rhel76:
17+
CONTAINER: rhel76
18+
long_test: yes
19+
ubuntu2004:
20+
CONTAINER: ubuntu2004
21+
long_test: yes
22+
extra_modules: ""
23+
ubuntu1804:
24+
CONTAINER: ubuntu1804
25+
extra_modules: ""
26+
ubuntu2204:
27+
CONTAINER: ubuntu2204
28+
ubuntu2404:
29+
CONTAINER: ubuntu2404
30+
ubuntu2210:
31+
CONTAINER: ubuntu2210
32+
debian113:
33+
CONTAINER: debian113
34+
debian109:
35+
CONTAINER: debian109
36+
debian125:
37+
CONTAINER: debian125
38+
sles15sp6:
39+
CONTAINER: sles15sp6
40+
rhel82:
41+
CONTAINER: rhel82
42+
rhel90:
43+
CONTAINER: rhel90
44+
fedora41:
45+
CONTAINER: fedora41
46+
centos7:
47+
CONTAINER: centos7_ib
48+
centos10stream:
49+
CONTAINER: centos10stream
50+
ubuntu2004_rocm:
51+
CONTAINER: ubuntu2004_rocm_5_4_0
52+
ubuntu2204_rocm:
53+
CONTAINER: ubuntu2204_rocm_6_0_0
54+
kylin10sp3:
55+
CONTAINER: kylin10sp3
56+
euleros2sp12:
57+
CONTAINER: euleros2sp12
58+
# ARM matrix
59+
${{ if contains(parameters.name, 'aarch64') }}:
60+
matrix:
61+
ubuntu2404_aarch64:
62+
CONTAINER: ubuntu2404_aarch64
63+
timeoutInMinutes: 340
64+
65+
steps:
66+
- checkout: self
67+
clean: true
68+
fetchDepth: 100
69+
retryCountOnTaskFailure: 5
70+
71+
- bash: |
72+
./buildlib/tools/builds.sh
73+
displayName: ${{ parameters.displayName }}
74+
env:
75+
BUILD_ID: "$(Build.BuildId)-$(Build.BuildNumber)"
76+
long_test: $(long_test)
77+
test_static: $(test_static)

buildlib/pr/main.yml

Lines changed: 14 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ resources:
5454
- container: ubuntu2404
5555
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/x86_64/ubuntu24.04/builder:doca-2.9.0
5656
options: $(DOCKER_OPT_ARGS) $(DOCKER_OPT_VOLUMES)
57+
- container: ubuntu2404_aarch64
58+
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/aarch64/ubuntu24.04/builder:doca-2.9.0
59+
options: $(DOCKER_OPT_ARGS) $(DOCKER_OPT_VOLUMES)
5760
- container: debian113
5861
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/x86_64/debian11.3/builder:mofed-5.8-3.0.7.0
5962
options: $(DOCKER_OPT_ARGS) $(DOCKER_OPT_VOLUMES)
@@ -203,71 +206,19 @@ stages:
203206
- stage: Build
204207
dependsOn: [Static_check]
205208
jobs:
206-
- job: build_source
207-
pool:
208-
name: MLNX
209+
- template: build_job.yml
210+
parameters:
211+
name: build_x86_64
209212
demands:
210-
- ucx_docker -equals yes
211-
strategy:
212-
matrix:
213-
rhel76:
214-
CONTAINER: rhel76
215-
long_test: yes
216-
ubuntu2004:
217-
CONTAINER: ubuntu2004
218-
long_test: yes
219-
extra_modules: ""
220-
ubuntu1804:
221-
CONTAINER: ubuntu1804
222-
extra_modules: ""
223-
ubuntu2204:
224-
CONTAINER: ubuntu2204
225-
ubuntu2404:
226-
CONTAINER: ubuntu2404
227-
ubuntu2210:
228-
CONTAINER: ubuntu2210
229-
debian113:
230-
CONTAINER: debian113
231-
debian109:
232-
CONTAINER: debian109
233-
debian125:
234-
CONTAINER: debian125
235-
sles15sp6:
236-
CONTAINER: sles15sp6
237-
rhel82:
238-
CONTAINER: rhel82
239-
rhel90:
240-
CONTAINER: rhel90
241-
fedora41:
242-
CONTAINER: fedora41
243-
centos7:
244-
CONTAINER: centos7_ib
245-
centos10stream:
246-
CONTAINER: centos10stream
247-
ubuntu2004_rocm:
248-
CONTAINER: ubuntu2004_rocm_5_4_0
249-
ubuntu2204_rocm:
250-
CONTAINER: ubuntu2204_rocm_6_0_0
251-
kylin10sp3:
252-
CONTAINER: kylin10sp3
253-
euleros2sp12:
254-
CONTAINER: euleros2sp12
255-
container: $[ variables['CONTAINER'] ]
256-
timeoutInMinutes: 340
257-
258-
steps:
259-
- checkout: self
260-
clean: true
261-
fetchDepth: 100
262-
retryCountOnTaskFailure: 5
213+
- ucx_docker
214+
displayName: Build on x86_64
263215

264-
- bash: |
265-
./buildlib/tools/builds.sh
266-
displayName: Build
267-
env:
268-
BUILD_ID: "$(Build.BuildId)-$(Build.BuildNumber)"
269-
long_test: $(long_test)
270-
test_static: $(test_static)
216+
- template: build_job.yml
217+
parameters:
218+
name: build_aarch64
219+
demands:
220+
- ucx_arm64
221+
displayName: Build on aarch64
271222

272223
- stage: ucx_perftest_mad_rte
273224
dependsOn: [Static_check]

0 commit comments

Comments
 (0)