Commit 12f960b2 authored by DanilBaibak's avatar DanilBaibak Committed by Facebook GitHub Bot
Browse files

Switch to Nova Linux Conda build (#2899)

Summary:
Switch to Nova Linux Conda build.

Pull Request resolved: https://github.com/pytorch/audio/pull/2899

Reviewed By: seemethere, osalpekar, mthrok

Differential Revision: D42416835

Pulled By: DanilBaibak

fbshipit-source-id: 70886c4ff6f3243b80059be9385269cc0f2d4764
parent b4cc0f33
This diff is collapsed.
...@@ -45,6 +45,11 @@ def build_workflows(prefix="", upload=False, filter_branch=None, indentation=6): ...@@ -45,6 +45,11 @@ def build_workflows(prefix="", upload=False, filter_branch=None, indentation=6):
if ( if (
(cu_version.startswith("rocm") and btype == "conda") (cu_version.startswith("rocm") and btype == "conda")
or (os_type == "linux" and btype == "wheel") or (os_type == "linux" and btype == "wheel")
or (
os_type == "linux"
and btype == "conda"
and (python_version != "3.8" or cu_version != "cu116")
)
or (os_type == "macos" and btype == "wheel") or (os_type == "macos" and btype == "wheel")
): ):
continue continue
...@@ -55,6 +60,10 @@ def build_workflows(prefix="", upload=False, filter_branch=None, indentation=6): ...@@ -55,6 +60,10 @@ def build_workflows(prefix="", upload=False, filter_branch=None, indentation=6):
# the fields must match the build_docs "requires" dependency # the fields must match the build_docs "requires" dependency
fb = "/.*/" fb = "/.*/"
if os_type == "linux" and btype == "conda" and python_version == "3.8" and cu_version == "cu116":
w += build_workflow_pair(btype, os_type, python_version, cu_version, fb, prefix, False)
continue
w += build_workflow_pair(btype, os_type, python_version, cu_version, fb, prefix, upload) w += build_workflow_pair(btype, os_type, python_version, cu_version, fb, prefix, upload)
if not filter_branch: if not filter_branch:
......
...@@ -24,6 +24,7 @@ jobs: ...@@ -24,6 +24,7 @@ jobs:
- repository: pytorch/audio - repository: pytorch/audio
pre-script: packaging/pre_build_script.sh pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh post-script: packaging/post_build_script.sh
smoke-test-script: test/smoke_test/smoke_test.py
package-name: torchaudio package-name: torchaudio
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main
...@@ -37,8 +38,7 @@ jobs: ...@@ -37,8 +38,7 @@ jobs:
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
package-name: ${{ matrix.package-name }} package-name: ${{ matrix.package-name }}
# Using "development" as trigger event so these binaries are not uploaded smoke-test-script: ${{ matrix.smoke-test-script }}
# to official channels yet trigger-event: ${{ github.event_name }}
trigger-event: development
secrets: secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }} CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
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