@@ -32,14 +32,36 @@ jobs:
3232 target : " aarch64-apple-darwin"
3333 - os : " macos-latest" # for Intel based macs.
3434 target : " x86_64-apple-darwin"
35- - os : " ubuntu-22 .04"
35+ - os : " ubuntu-24 .04"
3636 target : x86_64-unknown-linux-gnu
3737 - os : " windows-latest"
3838 target : x86_64-pc-windows-msvc
3939
4040 runs-on : ${{ matrix.os }}
4141 steps :
4242 - uses : actions/checkout@v4
43+ - name : install dependencies macos
44+ if : ${{ matrix.os }} == "macos-latest"
45+ run : brew install ffmpeg pkgconf
46+ - name : install dependencies linux
47+ if : ${{ matrix.os }} == "ubuntu-24.04"
48+ run : |
49+ sudo apt-get update
50+ sudo apt install -y libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev pkg-config
51+ - name : Install winget
52+ if : ${{ matrix.os }} == "windows-latest"
53+ uses : Cyberboss/install-winget@v1
54+ - name : install ffmpeg windows
55+ if : ${{ matrix.os }} == "windows-latest"
56+ run : |
57+ mkdir ffmpeg
58+ winget install --id BtbN.FFmpeg.GPL.Shared.7.1 -l ffmpeg --accept-package-agreements --accept-source-agreements
59+ $dir = Get-Item ffmpeg/ffmpeg-* | Select-Object -First 1
60+ Rename-Item -Path $dir.FullName -NewName "ffmpeg"
61+ ls -l ffmpeg/ffmpeg
62+ $ffmpeg = Resolve-Path -Path "ffmpeg/ffmpeg" | Select-Object -ExpandProperty Path
63+ echo "FFMPEG_LIBS_DIR=$ffmpeg/lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
64+ echo "FFMPEG_INCLUDE_DIR=$ffmpeg/include" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4365 - uses : taiki-e/upload-rust-binary-action@v1
4466 with :
4567 # (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
0 commit comments