Skip to content

Commit c658233

Browse files
committed
adding the include build matrix for all the configs
1 parent a61153d commit c658233

File tree

1 file changed

+65
-13
lines changed

1 file changed

+65
-13
lines changed

.github/workflows/build-test-linux-x86_64.yml

Lines changed: 65 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ jobs:
101101
ref: ""
102102
test-infra-repository: pytorch/test-infra
103103
test-infra-ref: main
104-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
104+
# Extract the include array from filter-matrix output
105+
build-matrix: |
106+
{
107+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
108+
}
105109
pre-script: ${{ matrix.pre-script }}
106110
script: |
107111
set -euo pipefail
@@ -129,7 +133,11 @@ jobs:
129133
ref: ""
130134
test-infra-repository: pytorch/test-infra
131135
test-infra-ref: main
132-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
136+
# Extract the include array from filter-matrix output
137+
build-matrix: |
138+
{
139+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
140+
}
133141
pre-script: ${{ matrix.pre-script }}
134142
script: |
135143
set -euo pipefail
@@ -160,7 +168,11 @@ jobs:
160168
ref: ""
161169
test-infra-repository: pytorch/test-infra
162170
test-infra-ref: main
163-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
171+
# Extract the include array from filter-matrix output
172+
build-matrix: |
173+
{
174+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
175+
}
164176
pre-script: ${{ matrix.pre-script }}
165177
script: |
166178
set -euo pipefail
@@ -188,7 +200,11 @@ jobs:
188200
ref: ""
189201
test-infra-repository: pytorch/test-infra
190202
test-infra-ref: main
191-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
203+
# Extract the include array from filter-matrix output
204+
build-matrix: |
205+
{
206+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
207+
}
192208
pre-script: ${{ matrix.pre-script }}
193209
script: |
194210
set -euo pipefail
@@ -220,7 +236,11 @@ jobs:
220236
ref: ""
221237
test-infra-repository: pytorch/test-infra
222238
test-infra-ref: main
223-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
239+
# Extract the include array from filter-matrix output
240+
build-matrix: |
241+
{
242+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
243+
}
224244
pre-script: ${{ matrix.pre-script }}
225245
script: |
226246
set -euo pipefail
@@ -248,7 +268,11 @@ jobs:
248268
ref: ""
249269
test-infra-repository: pytorch/test-infra
250270
test-infra-ref: main
251-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
271+
# Extract the include array from filter-matrix output
272+
build-matrix: |
273+
{
274+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
275+
}
252276
pre-script: ${{ matrix.pre-script }}
253277
script: |
254278
set -euo pipefail
@@ -276,7 +300,11 @@ jobs:
276300
ref: ""
277301
test-infra-repository: pytorch/test-infra
278302
test-infra-ref: main
279-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
303+
# Extract the include array from filter-matrix output
304+
build-matrix: |
305+
{
306+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
307+
}
280308
pre-script: ${{ matrix.pre-script }}
281309
script: |
282310
set -euo pipefail
@@ -306,7 +334,11 @@ jobs:
306334
ref: ""
307335
test-infra-repository: pytorch/test-infra
308336
test-infra-ref: main
309-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
337+
# Extract the include array from filter-matrix output
338+
build-matrix: |
339+
{
340+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
341+
}
310342
pre-script: ${{ matrix.pre-script }}
311343
script: |
312344
set -euo pipefail
@@ -338,7 +370,11 @@ jobs:
338370
ref: ""
339371
test-infra-repository: pytorch/test-infra
340372
test-infra-ref: main
341-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
373+
# Extract the include array from filter-matrix output
374+
build-matrix: |
375+
{
376+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
377+
}
342378
pre-script: ${{ matrix.pre-script }}
343379
script: |
344380
set -euo pipefail
@@ -367,7 +403,11 @@ jobs:
367403
ref: ""
368404
test-infra-repository: pytorch/test-infra
369405
test-infra-ref: main
370-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
406+
# Extract the include array from filter-matrix output
407+
build-matrix: |
408+
{
409+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
410+
}
371411
pre-script: ${{ matrix.pre-script }}
372412
script: |
373413
set -euo pipefail
@@ -396,7 +436,11 @@ jobs:
396436
ref: ""
397437
test-infra-repository: pytorch/test-infra
398438
test-infra-ref: main
399-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
439+
# Extract the include array from filter-matrix output
440+
build-matrix: |
441+
{
442+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
443+
}
400444
pre-script: ${{ matrix.pre-script }}
401445
script: |
402446
set -euo pipefail
@@ -424,7 +468,11 @@ jobs:
424468
ref: ""
425469
test-infra-repository: pytorch/test-infra
426470
test-infra-ref: main
427-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
471+
# Extract the include array from filter-matrix output
472+
build-matrix: |
473+
{
474+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
475+
}
428476
pre-script: ${{ matrix.pre-script }}
429477
script: |
430478
set -euo pipefail
@@ -452,7 +500,11 @@ jobs:
452500
ref: ""
453501
test-infra-repository: pytorch/test-infra
454502
test-infra-ref: main
455-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
503+
# Extract the include array from filter-matrix output
504+
build-matrix: |
505+
{
506+
"include": ${{ toJSON(fromJSON(needs.filter-matrix.outputs.matrix).include) }}
507+
}
456508
pre-script: ${{ matrix.pre-script }}
457509
script: |
458510
set -euo pipefail

0 commit comments

Comments
 (0)