Skip to content

Commit afdaea6

Browse files
author
Alexander Refsum Jensenius
committed
Fix Ubuntu FFmpeg installation in CI
- Replace FedericoCarboni/setup-ffmpeg action with native apt-get for Ubuntu - Keep setup-ffmpeg action only for Windows where it works reliably - Use brew for macOS and apt-get for Ubuntu for better reliability - Fixes TypeError: fetch failed on Ubuntu runners with setup-ffmpeg@v3
1 parent 6c32690 commit afdaea6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ jobs:
3232
run: |
3333
brew install ffmpeg
3434
35-
- name: Install FFmpeg on Ubuntu/Windows
36-
if: runner.os != 'macOS'
35+
- name: Install system dependencies on Ubuntu
36+
if: runner.os == 'Linux'
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y ffmpeg
40+
41+
- name: Install FFmpeg on Windows
42+
if: runner.os == 'Windows'
3743
uses: FedericoCarboni/setup-ffmpeg@v3
3844
id: setup-ffmpeg
3945

0 commit comments

Comments
 (0)