Skip to content

Commit

Permalink
Make ffmpeg build workflow execute when script changes (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts authored Oct 28, 2024
1 parent b942423 commit f080d84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_ffmpeg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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

Expand Down Expand Up @@ -46,13 +49,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"
Expand Down

0 comments on commit f080d84

Please sign in to comment.