ci: filter ffmpeg install by os

This commit is contained in:
Brendan Allan committed 2022-04-23 17:24:31 +08:00
1 parent 357015b3da
commit b2ea71fecb
1 file changed
+3
+3
View File
@@ -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"