diff --git a/.github/actions/setup-media-proof-tools/action.yml b/.github/actions/setup-media-proof-tools/action.yml new file mode 100644 index 0000000000..295cb4b289 --- /dev/null +++ b/.github/actions/setup-media-proof-tools/action.yml @@ -0,0 +1,24 @@ +name: Setup media proof tools +description: Install ffmpeg/ffprobe for ClawSweeper video proof inspection. + +runs: + using: composite + steps: + - name: Install ffmpeg and ffprobe + shell: bash + run: | + set -euo pipefail + if command -v ffmpeg >/dev/null 2>&1 && command -v ffprobe >/dev/null 2>&1; then + ffmpeg -version | head -n 1 + ffprobe -version | head -n 1 + exit 0 + fi + if command -v apt-get >/dev/null 2>&1; then + sudo apt-get update + sudo apt-get install -y --no-install-recommends ffmpeg + else + echo "ffmpeg/ffprobe are required for video proof inspection, and apt-get is unavailable on this runner." >&2 + exit 1 + fi + ffmpeg -version | head -n 1 + ffprobe -version | head -n 1 diff --git a/.github/workflows/sweep.yml b/.github/workflows/sweep.yml index 624095ff4c..c1753fde93 100644 --- a/.github/workflows/sweep.yml +++ b/.github/workflows/sweep.yml @@ -258,6 +258,8 @@ jobs: with: build-script: build:all + - uses: ./.github/actions/setup-media-proof-tools + - name: Mark re-review command in progress continue-on-error: true env: @@ -922,6 +924,8 @@ jobs: with: login-status: "true" + - uses: ./clawsweeper/.github/actions/setup-media-proof-tools + - uses: actions/cache@v5 with: path: ${{ needs.plan.outputs.target_checkout_dir }}-cache.git