Skip to content

Commit

Permalink
Only install ffmpeg on linux runner for py3.10
Browse files Browse the repository at this point in the history
Installing ffmpeg takes about 20-30 seconds. Testing the ffmpeg
functionality on one version of python seem sufficient.
  • Loading branch information
dairiki committed Mar 30, 2022
1 parent 73b7a84 commit 5af8f76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Install Linux system dependencies
if: runner.os == 'Linux'
- name: Install ffmpeg (Linux)
if: runner.os == 'Linux' && matrix.install-imagemagick
run: sudo apt-get install -y ffmpeg

- name: Install macOS system dependencies
if: startsWith(runner.os, 'macos') && matrix.install-imagemagick
- name: Install imagemagick and ffmpeg (macOS)
if: runner.os == 'macOS' && matrix.install-imagemagick
run: brew install imagemagick ffmpeg

- name: Install Windows system dependencies
if: startsWith(runner.os, 'windows') && matrix.install-imagemagick
- name: Install imagemagick and ffmpeg (Windows)
if: runner.os == 'Windows' && matrix.install-imagemagick
run: |
choco install --no-progress --timeout 600 imagemagick.app ffmpeg
# The imagemagick.app package, for whatever reason, installs
Expand All @@ -143,7 +143,7 @@ jobs:
# Refs:
# https://github.com/lektor/lektor/pull/933#issuecomment-923107580
# https://github.com/tox-dev/tox/issues/1550
if: startsWith(runner.os, 'windows')
if: runner.os == 'Windows'
run: Out-File $env:GITHUB_ENV utf8 -Append -InputObject 'PYTHONIOENCODING=utf-8'

- name: Install python dependencies
Expand Down

0 comments on commit 5af8f76

Please sign in to comment.