From 4953bc22edaf835e4bc52b84f455fd1f96a07f9c Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Tue, 30 Apr 2024 03:39:53 +0200 Subject: [PATCH] Add CI matrix for macOS builds (#43) * Add FFmpeg version matrix to macOS CI job * Add macOS PKG_CONFIG_PATH * Change schedule to run CI builds weekly * Fix package installation dir Homebrew apparently always symlinks to /opt/homebrew, so this one is reliable --- .github/workflows/build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fec0445..16ac76c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: push: pull_request: schedule: - - cron: "0 0 * * *" # Daily + - cron: "20 7 * * 4" # Weekly on thursday env: CARGO_INCREMENTAL: 0 @@ -65,12 +65,20 @@ jobs: run: cargo test $CARGO_FEATURES build-test-lint-macos: - name: macOS - FFmpeg latest - build, test and lint + name: macOS - FFmpeg ${{ matrix.ffmpeg_version }} - build, test and lint runs-on: macos-latest + strategy: + matrix: + ffmpeg_version: ["4", "5", "6"] + fail-fast: false + + env: + PKG_CONFIG_PATH: /opt/homebrew/opt/ffmpeg@${{ matrix.ffmpeg_version }}/lib/pkgconfig + steps: - uses: actions/checkout@v4 - name: Install dependencies - run: brew install ffmpeg pkg-config + run: brew install ffmpeg@${{ matrix.ffmpeg_version }} pkg-config - name: Install Rust stable with clippy and rustfmt uses: dtolnay/rust-toolchain@stable with: