@@ -17,28 +17,6 @@ permissions:
1717 contents : read
1818
1919jobs :
20- build-x64-test :
21- strategy :
22- fail-fast : false
23- matrix :
24- python-version : ['3.12']
25- include :
26- - repository : pytorch/vision
27- smoke-test-script : test/smoke_test.py
28- package-name : torchvision
29- aarch : ' x64'
30- test-infra-repository : pytorch/test-infra
31- test-infra-ref : main
32- name : test new job
33- uses : alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
34- with :
35- repository : ${{ matrix.repository }}
36- test-infra-repository : ${{ matrix.test-infra-repository }}
37- test-infra-ref : ${{ matrix.test-infra-ref }}
38- package-name : ${{ matrix.package-name }}
39- smoke-test-script : ${{ matrix.smoke-test-script }}
40- build-matrix : ${{ toJson(matrix) }}
41-
4220 generate-matrix :
4321 uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
4422 with :
@@ -47,30 +25,97 @@ jobs:
4725 test-infra-repository : pytorch/test-infra
4826 test-infra-ref : main
4927 with-xpu : enable
28+
5029 build :
5130 needs : generate-matrix
5231 strategy :
5332 fail-fast : false
5433 matrix :
5534 include :
35+ # Standard matrix configuration from the original build job
5636 - repository : pytorch/vision
5737 pre-script : packaging/pre_build_script.sh
5838 env-script : packaging/windows/internal/vc_env_helper.bat
5939 post-script : " python packaging/wheel/relocate.py"
6040 smoke-test-script : test/smoke_test.py
6141 package-name : torchvision
62-
63- name : ${{ matrix.repository }}
42+ # Special x64 configuration from the original build-x64-test job
43+ - repository : pytorch/vision
44+ smoke-test-script : test/smoke_test.py
45+ package-name : torchvision
46+ python-version : ' 3.12'
47+ aarch : ' x64'
48+ test-infra-repository : ' alinpahontu2912/test-infra'
49+ test-infra-ref : ' x64_windowstest'
50+ name : ${{ matrix.repository }}${{ matrix.aarch && format(' ({0})', matrix.aarch) || '' }}
6451 uses : pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
6552 with :
6653 repository : ${{ matrix.repository }}
6754 ref : " "
68- test-infra-repository : pytorch/test-infra
69- test-infra-ref : main
70- build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
55+ test-infra-repository : ${{ matrix.test-infra-repository || ' pytorch/test-infra' }}
56+ test-infra-ref : ${{ matrix.test-infra-ref || ' main' }}
57+ build-matrix : ${{ !matrix.aarch && needs.generate-matrix.outputs.matrix || toJson(matrix) }}
7158 pre-script : ${{ matrix.pre-script }}
7259 env-script : ${{ matrix.env-script }}
7360 post-script : ${{ matrix.post-script }}
7461 package-name : ${{ matrix.package-name }}
7562 smoke-test-script : ${{ matrix.smoke-test-script }}
7663 trigger-event : ${{ github.event_name }}
64+
65+ # jobs:
66+ # build-x64-test:
67+ # strategy:
68+ # fail-fast: false
69+ # matrix:
70+ # python-version: ['3.12']
71+ # include:
72+ # - repository: pytorch/vision
73+ # smoke-test-script: test/smoke_test.py
74+ # package-name: torchvision
75+ # aarch: 'x64'
76+ # test-infra-repository: pytorch/test-infra
77+ # test-infra-ref: main
78+ # name: test new job
79+ # uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
80+ # with:
81+ # repository: ${{ matrix.repository }}
82+ # test-infra-repository: ${{ matrix.test-infra-repository }}
83+ # test-infra-ref: ${{ matrix.test-infra-ref }}
84+ # package-name: ${{ matrix.package-name }}
85+ # smoke-test-script: ${{ matrix.smoke-test-script }}
86+ # build-matrix: ${{ toJson(matrix) }}
87+
88+ # generate-matrix:
89+ # uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
90+ # with:
91+ # package-type: wheel
92+ # os: windows
93+ # test-infra-repository: pytorch/test-infra
94+ # test-infra-ref: main
95+ # with-xpu: enable
96+ # build:
97+ # needs: generate-matrix
98+ # strategy:
99+ # fail-fast: false
100+ # matrix:
101+ # include:
102+ # - repository: pytorch/vision
103+ # pre-script: packaging/pre_build_script.sh
104+ # env-script: packaging/windows/internal/vc_env_helper.bat
105+ # post-script: "python packaging/wheel/relocate.py"
106+ # smoke-test-script: test/smoke_test.py
107+ # package-name: torchvision
108+ # name: ${{ matrix.repository }}
109+ # uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
110+ # with:
111+ # repository: ${{ matrix.repository }}
112+ # ref: ""
113+ # test-infra-repository: pytorch/test-infra
114+ # test-infra-ref: main
115+ # build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
116+ # pre-script: ${{ matrix.pre-script }}
117+ # env-script: ${{ matrix.env-script }}
118+ # post-script: ${{ matrix.post-script }}
119+ # package-name: ${{ matrix.package-name }}
120+ # smoke-test-script: ${{ matrix.smoke-test-script }}
121+ # trigger-event: ${{ github.event_name }}
0 commit comments