From b2ea71fecbd6828d22226ae96540368ebea38138 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Sat, 23 Apr 2022 17:24:31 +0800 Subject: [PATCH] ci: filter ffmpeg install by os --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76f111179..a7412be8b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,6 +73,7 @@ jobs: uses: actions/checkout@v2 - name: Install ffmpeg (Ubuntu) + if: ${{ matrix.platform }} == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y --no-install-recommends \ @@ -88,9 +89,11 @@ jobs: ffmpeg - name: Install ffmpeg (macOS) + if: ${{ matrix.platform }} == 'macos-latest' run: brew install ffmpeg - name: Install ffmpeg (Windows) + if: ${{ matrix.platform }} == 'windows-latest' run: | $VCINSTALLDIR = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath) Add-Content $env:GITHUB_ENV "LIBCLANG_PATH=${VCINSTALLDIR}\VC\Tools\LLVM\x64\bin`n"