|
1 | | -name: Validate binary images |
| 1 | +name: Validate Windows binary images |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - main |
7 | | - paths: |
8 | | - - .github/workflows/validate-windows-binaries.yml |
9 | | - - .test/smoke_test/* |
10 | | - pull_request: |
11 | | - paths: |
12 | | - - .github/workflows/validate-windows-binaries.yml |
13 | | - - .test/smoke_test/* |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + channel: |
| 7 | + description: "Channel to use (nightly, test, release, all)" |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + workflow_dispatch: |
| 11 | + inputs: |
| 12 | + channel: |
| 13 | + description: "Channel to use (nightly, test, release, all)" |
| 14 | + required: true |
| 15 | + type: choice |
| 16 | + options: |
| 17 | + - release |
| 18 | + - nightly |
| 19 | + - test |
| 20 | + - all |
| 21 | + |
14 | 22 | jobs: |
15 | 23 | generate-conda-matrix: |
16 | 24 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
17 | 25 | with: |
18 | 26 | package-type: conda |
19 | 27 | os: windows |
20 | | - channel: nightly |
| 28 | + channel: ${{ inputs.channel }} |
21 | 29 | generate-wheel-matrix: |
22 | 30 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
23 | 31 | with: |
24 | 32 | package-type: wheel |
25 | 33 | os: windows |
26 | | - channel: nightly |
| 34 | + channel: ${{ inputs.channel }} |
27 | 35 | generate-libtorch-matrix: |
28 | 36 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
29 | 37 | with: |
30 | 38 | package-type: libtorch |
31 | 39 | os: windows |
32 | | - channel: nightly |
| 40 | + channel: ${{ inputs.channel }} |
| 41 | + |
33 | 42 | validate-windows-binaries-conda: |
34 | 43 | needs: generate-conda-matrix |
35 | 44 | strategy: |
|
47 | 56 | gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
48 | 57 | installation: ${{ matrix.installation }} |
49 | 58 | python_version: ${{ matrix.python_version }} |
| 59 | + |
50 | 60 | validate-windows-binaries-wheel: |
51 | 61 | needs: generate-wheel-matrix |
52 | 62 | strategy: |
|
64 | 74 | gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
65 | 75 | installation: ${{ matrix.installation }} |
66 | 76 | python_version: ${{ matrix.python_version }} |
| 77 | + |
67 | 78 | validate-linux-libtorch-binaries: |
68 | 79 | needs: generate-libtorch-matrix |
69 | 80 | strategy: |
|
0 commit comments