-
Notifications
You must be signed in to change notification settings - Fork 227
189 lines (182 loc) · 6.26 KB
/
validate-binaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: Validate binaries
# A reusable workflow that triggers a set of jobs that perform a smoke test / validation of pytorch binaries.
# Optionally restricts validation to the specified OS and channel.
# For the details about parameter values, see:
# pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
# For an example of the `workflow_call` usage see:
# https://github.com/pytorch/builder/pull/1144
on:
workflow_call:
inputs:
os:
description: "Operating system to generate for (linux, windows, macos, macos-arm64)"
required: true
type: string
channel:
description: "Channel to use (nightly, test, release, all)"
required: true
type: string
torchonly:
description: 'Validate torchonly'
default: false
required: false
type: boolean
include-test-ops:
description: 'Include Test Ops tests (only Linux)'
default: false
required: false
type: boolean
use-version-set:
description: 'Use version for each domain'
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
use-force-reinstall:
description: 'Use force-reinstall for pip binaries'
default: false
required: false
type: boolean
use-meta-cdn:
description: 'Use meta cdn for installing pip binaries'
default: false
required: false
type: boolean
use_split_build:
description: |
[Experimental] Use Split Build
required: false
type: boolean
default: false
use-extra-index-url:
description: 'Use extra-index url for pip tests'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
os:
description: "Operating system to generate for (linux, windows, macos, macos-arm64)"
required: true
type: choice
default: all
options:
- windows
- linux
- linux-aarch64
- macos
- all
channel:
description: "Channel to use (nightly, test, release, all)"
required: true
type: choice
default: test
options:
- release
- nightly
- test
- all
torchonly:
description: 'Validate torchonly'
default: false
required: false
type: boolean
version:
description: 'Version to validate'
default: ""
required: false
type: string
include-test-ops:
description: 'Include Test Ops tests (only Linux)'
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
use-force-reinstall:
description: 'Use force-reinstall for pip binaries'
default: false
required: false
type: boolean
use-meta-cdn:
description: 'Use meta cdn for installing pip binaries'
default: false
required: false
type: boolean
use_split_build:
description: |
[Experimental] Use Split Build
required: false
type: boolean
default: false
use-extra-index-url:
description: 'Use extra-index url for pip tests'
default: false
required: false
type: boolean
jobs:
generate-release-matrix:
uses: pytorch/test-infra/.github/workflows/generate_release_matrix.yml@main
with:
version: ${{ inputs.version }}
win:
if: inputs.os == 'windows' || inputs.os == 'all'
needs: generate-release-matrix
uses: ./.github/workflows/validate-windows-binaries.yml
with:
channel: ${{ inputs.channel }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
use-extra-index-url: ${{ inputs.use-extra-index-url }}
use-meta-cdn: ${{ inputs.use-meta-cdn }}
linux:
if: inputs.os == 'linux' || inputs.os == 'all'
needs: generate-release-matrix
uses: ./.github/workflows/validate-linux-binaries.yml
with:
channel: ${{ inputs.channel }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
include-test-ops: ${{ inputs.include-test-ops }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
use_split_build: ${{ inputs.use_split_build }}
use-extra-index-url: ${{ inputs.use-extra-index-url }}
use-meta-cdn: ${{ inputs.use-meta-cdn }}
linux-aarch64:
if: inputs.os == 'linux-aarch64' || inputs.os == 'all'
needs: generate-release-matrix
uses: ./.github/workflows/validate-aarch64-linux-binaries.yml
with:
channel: ${{ inputs.channel }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
use-extra-index-url: ${{ inputs.use-extra-index-url }}
use-meta-cdn: ${{ inputs.use-meta-cdn }}
mac-arm64:
if: inputs.os == 'macos' || inputs.os == 'all'
needs: generate-release-matrix
uses: ./.github/workflows/validate-macos-arm64-binaries.yml
with:
channel: ${{ inputs.channel }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
use-extra-index-url: ${{ inputs.use-extra-index-url }}
use-meta-cdn: ${{ inputs.use-meta-cdn }}