From 8b5e48cc8f0e905f6a00bce7054d0631b24808dd Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Wed, 12 Aug 2020 14:10:09 +0800 Subject: [PATCH] build.yml: use libclang from Visual Studio to speed up builds Also fix non-idiomatic parameter expansion in pwsh. --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22c581a..5a6a63f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,10 +78,11 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies run: | - choco install -y llvm - Invoke-WebRequest "https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-$($env:FFMPEG_VERSION)-win64-dev.zip" -OutFile "ffmpeg-$($env:FFMPEG_VERSION)-win64-dev.zip" - Expand-Archive -Path "ffmpeg-$($env:FFMPEG_VERSION)-win64-dev.zip" -DestinationPath . - Write-Output "::set-env name=FFMPEG_DIR::$(pwd)\ffmpeg-$($env:FFMPEG_VERSION)-win64-dev" + $VCINSTALLDIR = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath) + Write-Output "::set-env name=LIBCLANG_PATH::${VCINSTALLDIR}\VC\Tools\LLVM\x64\bin" + Invoke-WebRequest "https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-${env:FFMPEG_VERSION}-win64-dev.zip" -OutFile "ffmpeg-${env:FFMPEG_VERSION}-win64-dev.zip" + Expand-Archive -Path "ffmpeg-${env:FFMPEG_VERSION}-win64-dev.zip" -DestinationPath . + Write-Output "::set-env name=FFMPEG_DIR::${pwd}\ffmpeg-${env:FFMPEG_VERSION}-win64-dev" - name: Set up Rust uses: actions-rs/toolchain@v1 with: