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):
if (
(cu_version.startswith("rocm") and btype == "conda")
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")
):
continue
......@@ -55,6 +60,10 @@ def build_workflows(prefix="", upload=False, filter_branch=None, indentation=6):
# the fields must match the build_docs "requires" dependency
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)
if not filter_branch:
......
......@@ -24,6 +24,7 @@ jobs:
- repository: pytorch/audio
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
smoke-test-script: test/smoke_test/smoke_test.py
package-name: torchaudio
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main
......@@ -37,8 +38,7 @@ jobs:
pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }}
package-name: ${{ matrix.package-name }}
# Using "development" as trigger event so these binaries are not uploaded
# to official channels yet
trigger-event: development
smoke-test-script: ${{ matrix.smoke-test-script }}
trigger-event: ${{ github.event_name }}
secrets:
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