|
21 | 21 |
|
22 | 22 |
|
23 | 23 | PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] |
24 | | -CU_VERSIONS_DICT = {"linux": ["cpu", "cu102", "cu111","rocm4.1"], |
| 24 | +CU_VERSIONS_DICT = {"linux": ["cpu", "cu102", "cu111","cu113", "rocm4.1"], |
25 | 25 | "windows": ["cpu", "cu102", "cu111"], |
26 | 26 | "macos": ["cpu"]} |
27 | 27 |
|
@@ -75,7 +75,7 @@ def build_workflow_pair(btype, os_type, python_version, cu_version, filter_branc |
75 | 75 |
|
76 | 76 | if upload: |
77 | 77 |
|
78 | | - w.append(generate_upload_workflow(base_workflow_name, filter_branch, btype)) |
| 78 | + w.append(generate_upload_workflow(base_workflow_name, filter_branch, os_type, btype, cu_version)) |
79 | 79 |
|
80 | 80 | if filter_branch == 'nightly' and os_type != 'macos': |
81 | 81 | pydistro = 'pip' if btype == 'wheel' else 'conda' |
@@ -157,13 +157,17 @@ def gen_filter_branch_tree(*branches): |
157 | 157 | } |
158 | 158 |
|
159 | 159 |
|
160 | | -def generate_upload_workflow(base_workflow_name, filter_branch, btype): |
| 160 | +def generate_upload_workflow(base_workflow_name, filter_branch, os_type, btype, cu_version): |
161 | 161 | d = { |
162 | 162 | "name": "{base_workflow_name}_upload".format(base_workflow_name=base_workflow_name), |
163 | 163 | "context": "org-member", |
164 | 164 | "requires": [base_workflow_name], |
165 | 165 | } |
166 | 166 |
|
| 167 | + if btype == 'wheel': |
| 168 | + d["subfolder"] = "" if os_type == 'macos' else cu_version + "/" |
| 169 | + |
| 170 | + |
167 | 171 | if filter_branch: |
168 | 172 | d["filters"] = gen_filter_branch_tree(filter_branch) |
169 | 173 |
|
|
0 commit comments