Skip to content

Commit 9fdc69e

Browse files
try generate_matrix_change for arm64
1 parent efb2eec commit 9fdc69e

File tree

2 files changed

+120
-38
lines changed

2 files changed

+120
-38
lines changed
Lines changed: 82 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,78 @@
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 }}
176
name: Build Windows Wheels
277

378
on:
@@ -17,36 +92,15 @@ permissions:
1792
id-token: write
1893
contents: read
1994

20-
2195
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-
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 }}
Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,56 @@
1-
name: Build Windows X64 Torchvision Wheel Test
1+
name: Build Windows Wheels X64 Test
22

33
on:
4-
pull_request: null
4+
pull_request:
55
push:
66
branches:
77
- nightly
88
- main
99
- release/*
1010
tags:
11-
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
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]+
1214
workflow_dispatch:
1315

1416
permissions:
1517
id-token: write
1618
contents: read
1719

1820
jobs:
19-
trigger-test-infra:
21+
22+
generate-matrix:
23+
uses: alinpahontu2912/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
24+
with:
25+
package-type: wheel
26+
os: windows-arm64
27+
test-infra-repository: alinpahontu2912/test-infra
28+
test-infra-ref: x64windows_test
29+
with-xpu: enable
30+
31+
build:
32+
needs: generate-matrix
2033
strategy:
34+
fail-fast: false
2135
matrix:
22-
python_version: ["3.12"]
23-
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test
24-
name: Build Windows x64 Torchvision Wheel
36+
include:
37+
- repository: pytorch/vision
38+
smoke-test-script: test/smoke_test.py
39+
package-name: torchvision
40+
python-version: ["3.12"]
41+
architecture: 'arm64'
42+
name: ${{ matrix.repository }}
43+
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows.yml@x64windows_test
2544
with:
26-
python_version: ${{ matrix.python_version }}
27-
repository_name: 'pytorch/vision'
28-
repository_branch: // predefined github branch variable
45+
repository: ${{ matrix.repository }}
46+
ref: ""
47+
test-infra-repository: alinpahontu2912/test-infra
48+
test-infra-ref: x64windows_test
49+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
50+
pre-script: ${{ matrix.pre-script }}
51+
env-script: ${{ matrix.env-script }}
52+
post-script: ${{ matrix.post-script }}
53+
package-name: ${{ matrix.package-name }}
54+
smoke-test-script: ${{ matrix.smoke-test-script }}
55+
trigger-event: ${{ github.event_name }}
56+
architecture: ${{ matrix.architecture }}

0 commit comments

Comments
 (0)