Skip to content

Commit

Permalink
Make ffmpeg build workflow execute when script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts committed Oct 28, 2024
1 parent 59af4b7 commit 00ef15d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_ffmpeg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions packaging/build_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#
# The resulting FFmpeg libraries should not be shipped either.

# Trivial change to trigger CI.

set -eux

prefix="${FFMPEG_ROOT}"
Expand Down

0 comments on commit 00ef15d

Please sign in to comment.