From 19163379918d2f0267b6970c5a56e92e81486609 Mon Sep 17 00:00:00 2001 From: Jamjamjon <51357717+jamjamjon@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:30:06 +0800 Subject: [PATCH] Update rust-ci.yml --- .github/workflows/rust-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index eb7ceb3..1c3196d 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -66,6 +66,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Install FFmpeg (Ubuntu) + if: runner.os == 'Linux' + run: | + sudo apt update + sudo apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config + - name: Install FFmpeg (macOS) + if: runner.os == 'macOS' + run: brew install pkg-config ffmpeg + - name: Install FFmpeg (Windows) + if: runner.os == 'Windows' + run: | + $FFMPEG_URL = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z" + Invoke-WebRequest -Uri $FFMPEG_URL -OutFile ffmpeg.7z + 7z x ffmpeg.7z -o./ffmpeg + $env:Path += ";$(pwd)/ffmpeg/bin" - uses: actions-rs/toolchain@v1 with: profile: minimal