Commit c7e0595b authored by Omkar Salpekar's avatar Omkar Salpekar Committed by Facebook GitHub Bot
Browse files

[Nova] Build Linux Conda Binaries using reusable workflow (#2626)

Summary:
Calling the reusable workflow introduced in https://github.com/pytorch/test-infra/pull/546 to build conda binaries on linux.

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

Reviewed By: mehtanirav

Differential Revision: D39028057

Pulled By: osalpekar

fbshipit-source-id: d74ea3771967d0ee2b0ad28a8f811a95145b2183
parent 72404de9
name: Build TorchAudio Linux Conda Binaries
on:
workflow_dispatch:
jobs:
run-reusable-build-workflow:
uses: pytorch/test-infra/.github/workflows/build_conda_linux_reusable.yml@fix_pre_post
with:
domain: "torchaudio"
image: "pytorch/conda-builder:cpu"
...@@ -143,6 +143,8 @@ setup_macos() { ...@@ -143,6 +143,8 @@ setup_macos() {
# #
# Usage: setup_env 0.2.0 # Usage: setup_env 0.2.0
setup_env() { setup_env() {
# https://github.com/actions/checkout/issues/760#issuecomment-1097501613
git config --global --add safe.directory /__w/audio/audio
git submodule update --init --recursive git submodule update --init --recursive
setup_cuda setup_cuda
setup_build_version setup_build_version
......
echo "Running post build script..."
#!/bin/bash
set -ex
echo "Running pre build script..."
export FFMPEG_ROOT=${PWD}/third_party/ffmpeg
if [[ ! -d ${FFMPEG_ROOT} ]]; then
packaging/ffmpeg/build.sh
fi
echo FFMPEG_ROOT=${FFMPEG_ROOT}
echo "Setting environment variables for versions..."
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"
export BUILD_TYPE="conda"
export CU_VERSION="cpu"
export PYTHON_VERSION="3.8"
setup_env
export SOURCE_ROOT_DIR="$PWD"
setup_conda_pytorch_constraint
setup_conda_cudatoolkit_constraint
setup_visual_studio_constraint
export CUDATOOLKIT_CHANNEL="nvidia"
# NOTE: There are some dependencies that are not available for macOS on Python 3.10 without conda-forge
# nit
if [[ ${OSTYPE} =~ darwin* ]] && [[ ${PYTHON_VERSION} = "3.10" ]]; then
CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c conda-forge"
fi
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