Use brew if running on arm64 macos

This commit is contained in:
Malte Rosenbjerg 2025-10-16 09:19:05 +02:00
parent 25d7ae8374
commit abb9f15eeb

View file

@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-13]
os: [windows-latest, ubuntu-latest, macos-latest]
timeout-minutes: 7
steps:
@ -33,11 +33,14 @@ jobs:
- name: Lint with dotnet
run: dotnet format FFMpegCore.sln --severity warn --verify-no-changes
- name: Prepare FFMpeg
- if: runner.os != 'macOS' || runner.arch != 'ARM64'
uses: FedericoCarboni/setup-ffmpeg@v3
with:
ffmpeg-version: 6.0.1
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }}
- if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: brew install ffmpeg@6
- name: Test with dotnet
run: dotnet test FFMpegCore.sln --collect "XPlat Code Coverage" --logger GitHubActions