Skip to content

Commit e268d8d

Browse files
test
1 parent 19b9753 commit e268d8d

File tree

1 file changed

+25
-61
lines changed

1 file changed

+25
-61
lines changed

.github/workflows/build-wheels-windows.yml

Lines changed: 25 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@ permissions:
1818
contents: read
1919

2020
jobs:
21+
build_x64:
22+
strategy:
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+
iswinarm64: true
30+
name: ${{ matrix.repository }}-test-x64
31+
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
32+
with:
33+
repository: ${{ matrix.repository }}
34+
ref: ""
35+
test-infra-repository: alinpahontu2912/test-infra
36+
test-infra-ref: x64windows_test
37+
package-name: ${{ matrix.package-name }}
38+
smoke-test-script: ${{ matrix.smoke-test-script }}
39+
2140
generate-matrix:
2241
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
2342
with:
@@ -26,84 +45,29 @@ jobs:
2645
test-infra-repository: pytorch/test-infra
2746
test-infra-ref: main
2847
with-xpu: enable
29-
# build:
30-
# needs: generate-matrix
31-
# strategy:
32-
# fail-fast: false
33-
# matrix:
34-
# include:
35-
# - repository: pytorch/vision
36-
# pre-script: packaging/pre_build_script.sh
37-
# env-script: packaging/windows/internal/vc_env_helper.bat
38-
# post-script: "python packaging/wheel/relocate.py"
39-
# smoke-test-script: test/smoke_test.py
40-
# package-name: torchvision
41-
# name: ${{ matrix.repository }}
42-
# uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
43-
# with:
44-
# repository: ${{ matrix.repository }}
45-
# ref: ""
46-
# test-infra-repository: alinpahontu2912/test-infra
47-
# test-infra-ref: x64windows_test
48-
# build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
49-
# pre-script: ${{ matrix.pre-script }}
50-
# env-script: ${{ matrix.env-script }}
51-
# post-script: ${{ matrix.post-script }}
52-
# package-name: ${{ matrix.package-name }}
53-
# smoke-test-script: ${{ matrix.smoke-test-script }}
54-
# trigger-event: ${{ github.event_name }}
55-
56-
# build_x64:
57-
# strategy:
58-
# matrix:
59-
# python-version: ["3.12"]
60-
# include:
61-
# - repository: pytorch/vision
62-
# smoke-test-script: test/smoke_test.py
63-
# package-name: torchvision
64-
# python-version: "3.12"
65-
# iswinarm64: true
66-
# name: ${{ matrix.repository }}-test-x64
67-
# uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
68-
# with:
69-
# repository: ${{ matrix.repository }}
70-
# ref: ""
71-
# test-infra-repository: alinpahontu2912/test-infra
72-
# test-infra-ref: x64windows_test
73-
# package-name: ${{ matrix.package-name }}
74-
# smoke-test-script: ${{ matrix.smoke-test-script }}
7548
build:
7649
needs: generate-matrix
7750
strategy:
7851
fail-fast: false
7952
matrix:
8053
include:
81-
# Regular build configurations
8254
- repository: pytorch/vision
8355
pre-script: packaging/pre_build_script.sh
8456
env-script: packaging/windows/internal/vc_env_helper.bat
8557
post-script: "python packaging/wheel/relocate.py"
8658
smoke-test-script: test/smoke_test.py
8759
package-name: torchvision
88-
iswinarm64: false
89-
# Windows test special configuration
90-
- repository: pytorch/vision
91-
smoke-test-script: test/smoke_test.py
92-
package-name: torchvision
93-
python-version: "3.12"
94-
iswinarm64: true
95-
name: ${{ matrix.repository }}${{ matrix.iswinarm64 && '-x64' || '' }}
60+
name: ${{ matrix.repository }}
9661
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
9762
with:
9863
repository: ${{ matrix.repository }}
9964
ref: ""
100-
test-infra-repository: 'alinpahontu2912/test-infra'
101-
test-infra-ref: 'x64windows_test'
65+
test-infra-repository: alinpahontu2912/test-infra
66+
test-infra-ref: x64windows_test
10267
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
103-
pre-script: ${{ matrix.iswinarm64 && '' || matrix.pre-script }}
104-
env-script: ${{ matrix.iswinarm64 && '' || matrix.env-script }}
105-
post-script: ${{ matrix.iswinarm64 && '' || matrix.post-script }}
68+
pre-script: ${{ matrix.pre-script }}
69+
env-script: ${{ matrix.env-script }}
70+
post-script: ${{ matrix.post-script }}
10671
package-name: ${{ matrix.package-name }}
10772
smoke-test-script: ${{ matrix.smoke-test-script }}
10873
trigger-event: ${{ github.event_name }}
109-
# python-version: ${{ matrix.iswinarm64 && matrix.python-version || '' }}

0 commit comments

Comments
 (0)