-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stand alone job to build FFmpeg binaries (#3455)
Summary: Pull Request resolved: #3455 Differential Revision: D47242316 Pulled By: mthrok fbshipit-source-id: 0eb4bdb0a45fccfe9ff97eaed79db63cd7bfc7d8
- Loading branch information
1 parent
c34a1d6
commit 662f067
Showing
2 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# This job is not directly related to regular CI pipeline. | ||
# It is intended to create FFmpeg binaries that we upload on S3, | ||
# which then will be used during all the build process in CI or local. | ||
# | ||
# This job does not include uploading part. | ||
# Upload needs to be done manually, and it should be done only once | ||
# par new major release of FFmepg. | ||
name: FFmpeg Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' # on sunday | ||
|
||
jobs: | ||
Linux-LGPL: | ||
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 | ||
repository: pytorch/audio | ||
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/" | ||
mkdir -p "${artifact_dir}" | ||
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz" | ||
macOS-LGPL: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ffmpeg_version: ["4.1.8", "5.0.3", "6.0"] | ||
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 | ||
repository: pytorch/audio | ||
runner: "${{ matrix.runner }}" | ||
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)/macos_$(uname -m)" | ||
mkdir -p "${artifact_dir}" | ||
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz" | ||
Windows-LGPL: | ||
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 | ||
repository: pytorch/audio | ||
script: | | ||
export FFMPEG_VERSION="${{ matrix.ffmpeg_version }}" | ||
export FFMPEG_ROOT="${PWD}/third_party/ffmpeg" | ||
./packaging/ffmpeg/build.bat | ||
cd "${FFMPEG_ROOT}/.." | ||
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/bin | ||
artifact_dir="${RUNNER_ARTIFACT_DIR}/$(date +%Y-%m-%d)/windows" | ||
mkdir -p "${artifact_dir}" | ||
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters