1+ # name: Build Windows Wheels
2+
3+ # on:
4+ # pull_request:
5+ # push:
6+ # branches:
7+ # - nightly
8+ # - main
9+ # - release/*
10+ # tags:
11+ # # NOTE: Binary build pipelines should only get triggered on release candidate builds
12+ # # Release candidate tags look like: v1.11.0-rc1
13+ # - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+ # workflow_dispatch:
15+
16+ # permissions:
17+ # id-token: write
18+ # contents: read
19+
20+
21+ # jobs:
22+ # build_x64:
23+ # strategy:
24+ # matrix:
25+ # python-version: ["3.12"]
26+ # include:
27+ # - repository: pytorch/vision
28+ # smoke-test-script: test/smoke_test.py
29+ # package-name: torchvision
30+ # iswinarm64: true
31+ # name: ${{ matrix.repository }}-test-x64
32+ # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
33+ # with:
34+ # repository: ${{ matrix.repository }}
35+ # ref: ""
36+ # test-infra-repository: alinpahontu2912/test-infra
37+ # test-infra-ref: x64windows_test
38+ # package-name: ${{ matrix.package-name }}
39+ # smoke-test-script: ${{ matrix.smoke-test-script }}
40+
41+ # generate-matrix:
42+ # uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
43+ # with:
44+ # package-type: wheel
45+ # os: windows
46+ # test-infra-repository: alinpahontu2912/test-infra
47+ # test-infra-ref: x64windows_test
48+ # with-xpu: enable
49+
50+ # build:
51+ # needs: generate-matrix
52+ # strategy:
53+ # fail-fast: false
54+ # matrix:
55+ # include:
56+ # - repository: pytorch/vision
57+ # pre-script: packaging/pre_build_script.sh
58+ # env-script: packaging/windows/internal/vc_env_helper.bat
59+ # post-script: "python packaging/wheel/relocate.py"
60+ # smoke-test-script: test/smoke_test.py
61+ # package-name: torchvision
62+ # name: ${{ matrix.repository }}
63+ # uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
64+ # with:
65+ # repository: ${{ matrix.repository }}
66+ # ref: ""
67+ # test-infra-repository: alinpahontu2912/test-infra
68+ # test-infra-ref: x64windows_test
69+ # build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
70+ # pre-script: ${{ matrix.pre-script }}
71+ # env-script: ${{ matrix.env-script }}
72+ # post-script: ${{ matrix.post-script }}
73+ # package-name: ${{ matrix.package-name }}
74+ # smoke-test-script: ${{ matrix.smoke-test-script }}
75+ # trigger-event: ${{ github.event_name }}
176name : Build Windows Wheels
277
378on :
@@ -17,36 +92,15 @@ permissions:
1792 id-token : write
1893 contents : read
1994
20-
2195jobs :
22- build_x64 :
23- strategy :
24- matrix :
25- python-version : ["3.12"]
26- include :
27- - repository : pytorch/vision
28- smoke-test-script : test/smoke_test.py
29- package-name : torchvision
30- iswinarm64 : true
31- name : ${{ matrix.repository }}-test-x64
32- uses : alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
33- with :
34- repository : ${{ matrix.repository }}
35- ref : " "
36- test-infra-repository : alinpahontu2912/test-infra
37- test-infra-ref : x64windows_test
38- package-name : ${{ matrix.package-name }}
39- smoke-test-script : ${{ matrix.smoke-test-script }}
40-
4196 generate-matrix :
42- uses : alinpahontu2912 /test-infra/.github/workflows/generate_binary_build_matrix.yml@main
97+ uses : pytorch /test-infra/.github/workflows/generate_binary_build_matrix.yml@main
4398 with :
4499 package-type : wheel
45100 os : windows
46- test-infra-repository : alinpahontu2912 /test-infra
47- test-infra-ref : x64windows_test
101+ test-infra-repository : pytorch /test-infra
102+ test-infra-ref : main
48103 with-xpu : enable
49-
50104 build :
51105 needs : generate-matrix
52106 strategy :
@@ -60,16 +114,16 @@ jobs:
60114 smoke-test-script : test/smoke_test.py
61115 package-name : torchvision
62116 name : ${{ matrix.repository }}
63- uses : alinpahontu2912 /test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
117+ uses : pytorch /test-infra/.github/workflows/build_wheels_windows.yml@main
64118 with :
65119 repository : ${{ matrix.repository }}
66120 ref : " "
67- test-infra-repository : alinpahontu2912 /test-infra
68- test-infra-ref : x64windows_test
121+ test-infra-repository : pytorch /test-infra
122+ test-infra-ref : main
69123 build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
70124 pre-script : ${{ matrix.pre-script }}
71125 env-script : ${{ matrix.env-script }}
72126 post-script : ${{ matrix.post-script }}
73127 package-name : ${{ matrix.package-name }}
74128 smoke-test-script : ${{ matrix.smoke-test-script }}
75- trigger-event : ${{ github.event_name }}
129+ trigger-event : ${{ github.event_name }}
0 commit comments