Unverified Commit c65d57a5 authored by Omkar Salpekar's avatar Omkar Salpekar Committed by GitHub
Browse files

[Nova] Move Linux and Mac Conda binary publishing to GHA (#7004)

parent 842e178a
...@@ -1228,102 +1228,6 @@ workflows: ...@@ -1228,102 +1228,6 @@ workflows:
cu_version: cu117 cu_version: cu117
name: binary_win_wheel_py3.10_cu117 name: binary_win_wheel_py3.10_cu117
python_version: '3.10' python_version: '3.10'
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_linux_conda_py3.7_cpu
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
name: binary_linux_conda_py3.7_cu116
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
name: binary_linux_conda_py3.7_cu117
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_linux_conda_py3.8_cpu
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
name: binary_linux_conda_py3.8_cu116
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
name: binary_linux_conda_py3.8_cu117
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_linux_conda_py3.9_cpu
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
name: binary_linux_conda_py3.9_cu116
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
name: binary_linux_conda_py3.9_cu117
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_linux_conda_py3.10_cpu
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
name: binary_linux_conda_py3.10_cu116
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
name: binary_linux_conda_py3.10_cu117
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_macos_conda_py3.7_cpu
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_macos_conda_py3.8_cpu
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_macos_conda_py3.9_cpu
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
name: binary_macos_conda_py3.10_cpu
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cpu
- binary_win_conda: - binary_win_conda:
cu_version: cpu cu_version: cpu
filters: filters:
...@@ -1914,342 +1818,6 @@ workflows: ...@@ -1914,342 +1818,6 @@ workflows:
requires: requires:
- nightly_binary_win_wheel_py3.10_cu117 - nightly_binary_win_wheel_py3.10_cu117
subfolder: cu117/ subfolder: cu117/
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cpu
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cpu_upload
requires:
- nightly_binary_linux_conda_py3.7_cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cu116
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cu116_upload
requires:
- nightly_binary_linux_conda_py3.7_cu116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cu117
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.7_cu117_upload
requires:
- nightly_binary_linux_conda_py3.7_cu117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cpu
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cpu_upload
requires:
- nightly_binary_linux_conda_py3.8_cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cu116
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cu116_upload
requires:
- nightly_binary_linux_conda_py3.8_cu116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cu117
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.8_cu117_upload
requires:
- nightly_binary_linux_conda_py3.8_cu117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cpu
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cpu_upload
requires:
- nightly_binary_linux_conda_py3.9_cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cu116
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cu116_upload
requires:
- nightly_binary_linux_conda_py3.9_cu116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cu117
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.9_cu117_upload
requires:
- nightly_binary_linux_conda_py3.9_cu117
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cpu
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cpu_upload
requires:
- nightly_binary_linux_conda_py3.10_cpu
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cu116
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cuda116
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cu116_upload
requires:
- nightly_binary_linux_conda_py3.10_cu116
- binary_linux_conda:
conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cu117
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cuda117
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_conda_py3.10_cu117_upload
requires:
- nightly_binary_linux_conda_py3.10_cu117
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.7_cpu
python_version: '3.7'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.7_cpu_upload
requires:
- nightly_binary_macos_conda_py3.7_cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.8_cpu
python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.8_cpu_upload
requires:
- nightly_binary_macos_conda_py3.8_cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.9_cpu
python_version: '3.9'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.9_cpu_upload
requires:
- nightly_binary_macos_conda_py3.9_cpu
- binary_macos_conda:
conda_docker_image: pytorch/conda-builder:cpu
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.10_cpu
python_version: '3.10'
wheel_docker_image: pytorch/manylinux-cpu
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_macos_conda_py3.10_cpu_upload
requires:
- nightly_binary_macos_conda_py3.10_cpu
- binary_win_conda: - binary_win_conda:
cu_version: cpu cu_version: cpu
filters: filters:
......
...@@ -71,6 +71,10 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6, ...@@ -71,6 +71,10 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6,
if os_type == "macos" and btype == "wheel": if os_type == "macos" and btype == "wheel":
continue continue
# Disable all non-Windows Conda workflows
if os_type != "win" and btype == "conda":
continue
w += workflow_pair( w += workflow_pair(
btype, os_type, python_version, cu_version, unicode, prefix, upload, filter_branch=fb btype, os_type, python_version, cu_version, unicode, prefix, upload, filter_branch=fb
) )
......
...@@ -40,8 +40,6 @@ jobs: ...@@ -40,8 +40,6 @@ jobs:
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
smoke-test-script: ${{ matrix.smoke-test-script }} smoke-test-script: ${{ matrix.smoke-test-script }}
# Using "development" as trigger event so these binaries are not uploaded trigger-event: ${{ github.event_name }}
# to official channels yet
trigger-event: development
secrets: secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
...@@ -41,8 +41,6 @@ jobs: ...@@ -41,8 +41,6 @@ jobs:
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
smoke-test-script: ${{ matrix.smoke-test-script }} smoke-test-script: ${{ matrix.smoke-test-script }}
runner-type: macos-m1-12 runner-type: macos-m1-12
# Using "development" as trigger event so these binaries are not uploaded trigger-event: ${{ github.event_name }}
# to official channels yet
trigger-event: development
secrets: secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
...@@ -41,8 +41,6 @@ jobs: ...@@ -41,8 +41,6 @@ jobs:
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
smoke-test-script: ${{ matrix.smoke-test-script }} smoke-test-script: ${{ matrix.smoke-test-script }}
runner-type: macos-12 runner-type: macos-12
# Using "development" as trigger event so these binaries are not uploaded trigger-event: ${{ github.event_name }}
# to official channels yet
trigger-event: development
secrets: secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
...@@ -138,13 +138,3 @@ jobs: ...@@ -138,13 +138,3 @@ jobs:
with: with:
name: torchvision-py${{ matrix.py_vers }}-macos11-m1-conda name: torchvision-py${{ matrix.py_vers }}-macos11-m1-conda
path: dist/ path: dist/
- name: Upload package to conda
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/nightly' || startsWith(github.event.ref, 'refs/tags/')) }}
shell: arch -arch arm64 bash {0}
env:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
run: |
conda install -yq anaconda-client
set -x
export ANACONDA_PATH=$(conda info --base)/bin
$ANACONDA_PATH/anaconda -t "${CONDA_PYTORCHBOT_TOKEN}" upload dist/osx-arm64/*.tar.bz2 -u "pytorch-${CHANNEL}" --label main --no-progress --force
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment