Skip to content

Commit 0a61de2

Browse files
committed
Build FFmpeg on aarch64?
1 parent 2311422 commit 0a61de2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build_ffmpeg.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,32 @@ jobs:
4848
mkdir -p "${artifact_dir}"
4949
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
5050
51+
LGPL-Linux-aarch64:
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"]
56+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
57+
permissions:
58+
id-token: write
59+
contents: read
60+
with:
61+
job-name: Build
62+
upload-artifact: ffmpeg-lgpl-linux_aarch64-${{ matrix.ffmpeg-version }}
63+
repository: meta-pytorch/torchcodec
64+
runner: linux.arm64.2xlarge
65+
script: |
66+
export FFMPEG_VERSION="${{ matrix.ffmpeg-version }}"
67+
export FFMPEG_ROOT="${PWD}/ffmpeg"
68+
69+
packaging/build_ffmpeg.sh
70+
71+
tar -cf ffmpeg.tar.gz ffmpeg/include ffmpeg/lib
72+
73+
artifact_dir="${RUNNER_ARTIFACT_DIR}/$(date +%Y-%m-%d)/linux_aarch64"
74+
mkdir -p "${artifact_dir}"
75+
mv ffmpeg.tar.gz "${artifact_dir}/${FFMPEG_VERSION}.tar.gz"
76+
5177
LGPL-macOS:
5278
strategy:
5379
fail-fast: false

0 commit comments

Comments
 (0)