From 00ef15df815a52c3658c85dd906a721b04101a2d Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Mon, 28 Oct 2024 11:07:09 -0700 Subject: [PATCH] Make ffmpeg build workflow execute when script changes --- .github/workflows/build_ffmpeg.yaml | 7 ++++--- packaging/build_ffmpeg.sh | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_ffmpeg.yaml b/.github/workflows/build_ffmpeg.yaml index ce9fa2af..4846278f 100644 --- a/.github/workflows/build_ffmpeg.yaml +++ b/.github/workflows/build_ffmpeg.yaml @@ -10,7 +10,9 @@ name: Build non-GPL FFmpeg from source on: - workflow_dispatch: + pull_request: + paths: + - packaging/build_ffmpeg.sh schedule: - cron: '0 0 * * 0' # on sunday @@ -46,13 +48,12 @@ jobs: fail-fast: false matrix: ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"] - runner: ["macos-m1-stable"] uses: pytorch/test-infra/.github/workflows/macos_job.yml@main with: job-name: Build upload-artifact: ffmpeg-lgpl repository: pytorch/torchcodec - runner: "${{ matrix.runner }}" + runner: macos-14-xlarge script: | export FFMPEG_VERSION="${{ matrix.ffmpeg-version }}" export FFMPEG_ROOT="${PWD}/ffmpeg" diff --git a/packaging/build_ffmpeg.sh b/packaging/build_ffmpeg.sh index c5d28437..210410ba 100755 --- a/packaging/build_ffmpeg.sh +++ b/packaging/build_ffmpeg.sh @@ -17,6 +17,8 @@ # # The resulting FFmpeg libraries should not be shipped either. +# Trivial change to trigger CI. + set -eux prefix="${FFMPEG_ROOT}"