Skip to content

Commit 954b732

Browse files
committed
[build] Fix build failures due to no ffmpeg binaries for arm64.
1 parent 5dccc48 commit 954b732

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ jobs:
3737
env:
3838
# Version is extracted below and used to find correct package install path.
3939
scenedetect_version: ""
40+
# Setuptools must be pinned for the Python 3.7 builders.
41+
setuptools_version: "${{ matrix.python-version == '3.7' && '==62.3.4' || '' }}"
4042

4143
steps:
4244
- uses: actions/checkout@v4
45+
4346
- uses: FedericoCarboni/setup-ffmpeg@v3
47+
# TODO: This action currently does not work for non-x64 builders (e.g. macos-14):
48+
# https://github.com/federicocarboni/setup-ffmpeg/issues/21
49+
if: ${{ runner.arch == 'X64' }}
4450

4551
- name: Set up Python ${{ matrix.python-version }}
4652
uses: actions/setup-python@v5
@@ -49,17 +55,8 @@ jobs:
4955
cache: 'pip'
5056

5157
- name: Install Dependencies
52-
if: ${{ matrix.python-version != '3.7' }}
5358
run: |
54-
python -m pip install --upgrade pip build wheel virtualenv setuptools
55-
pip install av opencv-python-headless --only-binary :all:
56-
pip install -r requirements_headless.txt
57-
58-
# TODO(1.6.1): Remove this branch when deprecating Python 3.7.
59-
- name: Install Dependencies
60-
if: ${{ matrix.python-version == '3.7' }}
61-
run: |
62-
python -m pip install --upgrade pip build wheel virtualenv setuptools==62.3.4
59+
python -m pip install --upgrade pip build wheel virtualenv setuptools${{ env.setuptools_version }}
6360
pip install av opencv-python-headless --only-binary :all:
6461
pip install -r requirements_headless.txt
6562
@@ -79,13 +76,6 @@ jobs:
7976
python -m scenedetect -i tests/resources/testvideo.mp4 -b pyav time --end 2s
8077
python -m pip uninstall -y scenedetect
8178
82-
- name: Build Documentation
83-
if: ${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }}
84-
run: |
85-
pip install -r docs/requirements.txt
86-
git mv docs docs_src
87-
sphinx-build -b singlehtml docs_src docs
88-
8979
- name: Build Package
9080
shell: bash
9181
run: |

0 commit comments

Comments
 (0)