Skip to content

Commit ef413b4

Browse files
test logic
1 parent c442f96 commit ef413b4

File tree

2 files changed

+71
-41
lines changed

2 files changed

+71
-41
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build Windows Arm64 Torchvision Wheel
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
tags:
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
12+
workflow_dispatch:
13+
inputs:
14+
build_type:
15+
description: Build type
16+
required: true
17+
type: choice
18+
options:
19+
- Release
20+
# - Debug not available
21+
default: Release
22+
repository_name:
23+
description: Torchvision repository (username/repo)
24+
required: false
25+
type: string
26+
default: pytorch/vision
27+
repository_branch:
28+
description: Repository branch
29+
required: false
30+
type: string
31+
default: main
32+
33+
permissions:
34+
id-token: write
35+
contents: read
36+
37+
jobs:
38+
trigger-test-infra:
39+
strategy:
40+
matrix:
41+
python_version: ["3.12"] # only one for now
42+
runs-on: "windows-11-arm64"
43+
44+
steps:
45+
- name: Trigger Test Infra workflow
46+
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_arm64.yml@winarm64_wheels
47+
with:
48+
python_version: ${{ matrix.python_version }}
49+
build_type: ${{ inputs.build_type }}
50+
repository_name: ${{ inputs.repository_name }}
51+
repository_branch: ${{ inputs.repository_branch }}
Lines changed: 20 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,49 @@
1-
name: Build Windows X64 Wheels
1+
name: Build Windows Arm64 Torchvision Wheel
22

33
on:
4-
pull_request:
4+
pull_request: null
55
push:
66
branches:
77
- nightly
88
- main
99
- release/*
1010
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]+
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1412
workflow_dispatch:
1513
inputs:
16-
python_version:
17-
description: "Python version"
18-
required: true
19-
type: choice
20-
options:
21-
- Python312
22-
- Python311
23-
default: Python312
24-
msvc_version:
25-
description: "MSVC Version"
26-
required: true
27-
type: choice
28-
options:
29-
- 'latest'
30-
- '14.40'
31-
- '14.36'
32-
default: 'latest'
3314
build_type:
34-
description: "Build type"
15+
description: Build type
3516
required: true
3617
type: choice
3718
options:
3819
- Release
39-
# - Debug (not supported for wheel)
20+
# - Debug not available
4021
default: Release
4122
repository_name:
42-
description: "torchvision repository (username/repo)"
43-
required: true
23+
description: Torchvision repository (username/repo)
24+
required: false
4425
type: string
45-
default: "pytorch/vision"
26+
default: pytorch/vision
4627
repository_branch:
47-
description: "repository branch"
48-
required: true
49-
type: string
50-
default: "main"
51-
build_version:
52-
description: "Optional: build version for wheel file name (e.g. 2.6.0); leave empty for default naming"
28+
description: Repository branch
5329
required: false
5430
type: string
55-
default: ""
56-
31+
default: main
32+
5733
permissions:
5834
id-token: write
5935
contents: read
6036

6137
jobs:
6238
trigger-test-infra:
39+
strategy:
40+
matrix:
41+
python_version: ["3.12"] # only one for now
42+
runs-on: "windows-latest"
6343
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test
44+
name: Trigger Test Infra workflow
6445
with:
65-
python_version: ${{ inputs.python_version || 'Python312' }}
66-
msvc_version: ${{ inputs.msvc_version || 'latest' }}
67-
build_type: ${{ inputs.build_type || 'Release' }}
68-
repository_name: ${{ inputs.repository_name || 'pytorch/vision' }}
69-
repository_branch: ${{ inputs.repository_branch || 'main' }}
70-
build_version: ${{ inputs.build_version || '' }}
46+
python_version: ${{ matrix.python_version }}
47+
build_type: ${{ inputs.build_type }}
48+
repository_name: ${{ inputs.repository_name }}
49+
repository_branch: ${{ inputs.repository_branch }}

0 commit comments

Comments
 (0)