diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f6823e..59cf0a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,41 @@ jobs: run: | cargo fmt -- --check + # Remove when ffmpeg 6.0 is available here https://github.com/jrottenberg/ffmpeg/ + build-test-lint-linux-latest: + name: Linux - Latest ffmpeg - build, test and lint + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y software-properties-common + sudo add-apt-repository -y ppa:savoury1/ffmpeg6 + sudo add-apt-repository -y ppa:savoury1/ffmpeg4 + sudo apt update + sudo apt install -y --no-install-recommends clang curl pkg-config ffmpeg libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + - name: Build + run: | + cargo build --examples + - name: Test + run: | + cargo test --examples + - name: Lint + run: | + cargo clippy --examples -- -D warnings + - name: Check format + run: | + cargo fmt -- --check + build-test-lint-macos: name: macOS - FFmpeg latest - build, test and lint runs-on: macos-latest