Commit d9f51ce5 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Add ARM linux ffmpeg build (#3462)

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

Differential Revision: D47270241

Pulled By: mthrok

fbshipit-source-id: 6a3b02380dfb381ffb47c1f46b46f4833c765246
parent 2fa39dbd
......@@ -13,15 +13,15 @@ on:
- cron: '0 0 * * 0' # on sunday
jobs:
Linux-LGPL:
LGPL-Linux-x86_64:
strategy:
fail-fast: false
matrix:
ffmpeg_version: ["4.1.8", "5.0.3", "6.0"]
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
job-name: Build LGPL FFmpeg for Linux
upload-artifact: ffmpeg-linux-lgpl
job-name: Build
upload-artifact: ffmpeg-lgpl
repository: pytorch/audio
script: |
export FFMPEG_VERSION="${{ matrix.ffmpeg_version }}"
......@@ -31,11 +31,36 @@ jobs:
cd "${FFMPEG_ROOT}/.."
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/lib
artifact_dir="${RUNNER_ARTIFACT_DIR}/$(date +%Y-%m-%d)/linux/"
artifact_dir="${RUNNER_ARTIFACT_DIR}/$(date +%Y-%m-%d)/linux_x86_64/"
mkdir -p "${artifact_dir}"
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
macOS-LGPL:
LGPL-Linux-aarch64:
strategy:
fail-fast: false
matrix:
ffmpeg_version: ["4.1.8", "5.0.3", "6.0"]
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
job-name: Build
upload-artifact: ffmpeg-lgpl
repository: pytorch/audio
runner: "linux.t4g.2xlarge"
no-sudo: true
docker-image: quay.io/pypa/manylinux2014_aarch64
script: |
export FFMPEG_VERSION="${{ matrix.ffmpeg_version }}"
export FFMPEG_ROOT="${PWD}/third_party/ffmpeg"
./packaging/ffmpeg/build.sh
cd "${FFMPEG_ROOT}/.."
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/lib
artifact_dir="${RUNNER_ARTIFACT_DIR}/$(date +%Y-%m-%d)/linux_aarch64/"
mkdir -p "${artifact_dir}"
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
LGPL-macOS:
strategy:
fail-fast: false
matrix:
......@@ -43,8 +68,8 @@ jobs:
runner: ["macos-m1-12", "macos-12"]
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
with:
job-name: Build LGPL FFmpeg for macOS ("${{ matrix.runner }}")
upload-artifact: ffmpeg-macos-lgpl
job-name: Build
upload-artifact: ffmpeg-lgpl
repository: pytorch/audio
runner: "${{ matrix.runner }}"
script: |
......@@ -59,15 +84,15 @@ jobs:
mkdir -p "${artifact_dir}"
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
Windows-LGPL:
LGPL-Windows:
strategy:
fail-fast: false
matrix:
ffmpeg_version: ["4.1.8", "5.0.3", "6.0"]
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
with:
job-name: Build LGPL FFmpeg for Windows
upload-artifact: ffmpeg-windows-lgpl
job-name: Build
upload-artifact: ffmpeg-lgpl
repository: pytorch/audio
script: |
export FFMPEG_VERSION="${{ matrix.ffmpeg_version }}"
......
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