Skip to content

Commit 9c3c8a6

Browse files
update workflow
1 parent e8d9090 commit 9c3c8a6

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/build_wheel_windows_x64_test.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
options:
2121
- Python312
2222
- Python311
23+
default: Python312
2324
msvc_version:
2425
description: "MSVC Version"
2526
required: true
@@ -28,35 +29,32 @@ on:
2829
- 'latest'
2930
- '14.40'
3031
- '14.36'
31-
# pytorch_build_run_id:
32-
# description: "PyTorch build run id for downloading the wheel artifact (number at the end of build run URL)"
33-
# required: true
34-
# default: "13589031393"
35-
# type: string
32+
default: 'latest'
3633
pytorch_build_artifact_name:
3734
description: "Artifact name of PyTorch build run"
3835
required: true
3936
default: "pytorch-wheel"
4037
type: string
4138
build_type:
4239
description: "Build type"
43-
required: true
40+
required: false
4441
type: choice
4542
options:
4643
- Release
47-
# - Debug (not supported for wheel)
44+
# - Debug not available for the wheel
45+
default: Release
4846
repository_name:
4947
description: "torchvision repository (username/repo)"
50-
required: true
48+
required: false
5149
default: "pytorch/vision"
5250
type: string
5351
repository_branch:
5452
description: "repository branch"
55-
required: true
53+
required: false
5654
default: "main"
5755
type: string
5856
build_version:
59-
description: "Optional: build version for wheel file name (e.g. 2.6.0); otherwise leave empty for default naming"
57+
description: "Optional: build version for wheel file name (e.g. 2.6.0)"
6058
required: false
6159
default: "2.6.0"
6260
type: string
@@ -69,10 +67,9 @@ jobs:
6967
trigger-test-infra:
7068
uses: alinpahontu2912/test-infra/.github/workflows/build_wheels_windows_x64_test.yml@x64windows_test
7169
with:
72-
repository_name: ${{ inputs.repository_name || 'pytorch/vision' }}
73-
repository_branch: ${{ inputs.repository_branch || 'main'}}
74-
python_version: ${{ inputs.python_version || 'Python312' }}
75-
msvc_version: ${{ inputs.msvc_version || 'latest' }}
76-
# pytorch_build_run_id: ${{ inputs.pytorch_build_run_id || '13589031393' }}
77-
build_type: ${{ inputs.build_type || 'Release' }}
70+
repository_name: ${{ inputs.repository_name }}
71+
repository_branch: ${{ inputs.repository_branch }}
72+
python_version: ${{ inputs.python_version }}
73+
msvc_version: ${{ inputs.msvc_version }}
74+
build_type: ${{ inputs.build_type }}
7875
build_version: ${{ inputs.build_version }}

0 commit comments

Comments
 (0)