File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ permissions:
1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
14+ runs-on : ${{ matrix.os }}
15+ strategy :
16+ matrix :
17+ os : [ubuntu-latest, macos-latest, windows-latest]
1518
1619 steps :
1720 - uses : actions/checkout@v4
3942 - name : Install dependencies
4043 run : composer install --prefer-dist --no-progress
4144
42- - name : Install FFmpeg 7.1.1
45+ - name : Install FFmpeg 7.1.1 on Linux
46+ if : matrix.os == 'ubuntu-latest'
4347 run : |
4448 sudo apt update
4549 sudo apt install -y \
5963 sudo ldconfig
6064 ffmpeg -version
6165
66+ - name : Install FFmpeg 7.1.1 on macOS
67+ if : matrix.os == 'macos-latest'
68+ run : |
69+ brew install cmake git nasm pkg-config x264 x265 libvpx fdk-aac lame opus
70+ git clone https://github.com/FFmpeg/FFmpeg.git
71+ cd FFmpeg
72+ git checkout n7.1.1
73+ ./configure --enable-shared --enable-gpl --enable-nonfree \
74+ --enable-libx264 --enable-libx265 --enable-libvpx \
75+ --enable-libfdk-aac --enable-libmp3lame --enable-libopus
76+ make -j$(sysctl -n hw.ncpu)
77+ sudo make install
78+ ffmpeg -version
79+
80+ - name : Install FFmpeg 7.1.1 on Windows (prebuilt)
81+ if : matrix.os == 'windows-latest'
82+ run : |
83+ Invoke-WebRequest -Uri https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.1.1-full_build.zip -OutFile ffmpeg.zip
84+ Expand-Archive ffmpeg.zip -DestinationPath $env:USERPROFILE\ffmpeg
85+ $env:Path += ";$env:USERPROFILE\ffmpeg\ffmpeg-7.1.1-full_build\bin"
86+ ffmpeg -version
87+
6288 - name : Check PHP and FFI status
6389 run : |
6490 php -v
You can’t perform that action at this time.
0 commit comments