File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 72
72
contents : read
73
73
packages : write
74
74
uses : ./.github/workflows/build-test-linux-x86_64.yml
75
+ with :
76
+ job-name : build-test-all-linux-x86_64
75
77
76
78
trigger-windows-test :
77
79
needs : [fail-fast-test]
82
84
contents : read
83
85
packages : write
84
86
uses : ./.github/workflows/build-test-windows.yml
87
+ with :
88
+ job-name : build-test-all-windows
85
89
86
90
wait-all-jobs :
87
91
needs : [trigger-linux-test, trigger-windows-test]
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Lan test workflow x86_64 wheels
3
3
on :
4
4
# pull_request:
5
5
workflow_call :
6
+ inputs :
7
+ job-name :
8
+ required : true
9
+ default : " build-test-linux-x86_64"
6
10
push :
7
11
branches :
8
12
- main
15
19
workflow_dispatch :
16
20
17
21
jobs :
18
- generate-matrix :
22
+ generate-linux-x86_64- matrix :
19
23
uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
20
24
with :
21
25
package-type : wheel
25
29
with-rocm : false
26
30
with-cpu : false
27
31
28
- filter-matrix :
29
- needs : [generate-matrix]
32
+ filter-linux-x86_64- matrix :
33
+ needs : [generate-linux-x86_64- matrix]
30
34
outputs :
31
35
matrix : ${{ steps.generate.outputs.matrix }}
32
36
runs-on : ubuntu-latest
41
45
id : generate
42
46
run : |
43
47
set -eou pipefail
44
- MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
48
+ MATRIX_BLOB=${{ toJSON(needs.generate-linux-x86_64- matrix.outputs.matrix) }}
45
49
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
46
50
echo "${MATRIX_BLOB}"
51
+ echo "${{ github.workflow }}-linux-x86_64-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
47
52
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
48
53
49
54
# build:
Original file line number Diff line number Diff line change 44
44
id : generate
45
45
run : |
46
46
set -eou pipefail
47
+ echo "${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
47
48
MATRIX_BLOB=${{ toJSON(needs.generate-windows-matrix.outputs.matrix) }}
48
49
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
49
50
echo "${MATRIX_BLOB}"
You can’t perform that action at this time.
0 commit comments