build.yml: fix Windows build
ffmpeg.zeranoe.com is gone. Replacing it with another option listed at ffmpeg.org, https://www.gyan.dev/ffmpeg/builds/.
This commit is contained in:
parent
b962e4f9f6
commit
ae06272af1
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -70,19 +70,24 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ffmpeg_version: ["4.3.1"]
|
include:
|
||||||
|
- ffmpeg_version: "4.3.1"
|
||||||
|
ffmpeg_download_url: https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-09-21-full_build-shared.zip
|
||||||
|
ffmpeg_directory_name: ffmpeg-4.3.1-2020-09-21-full_build-shared
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
FFMPEG_VERSION: ${{ matrix.ffmpeg_version }}
|
FFMPEG_VERSION: ${{ matrix.ffmpeg_version }}
|
||||||
|
FFMPEG_DOWNLOAD_URL: ${{ matrix.ffmpeg_download_url }}
|
||||||
|
FFMPEG_DIRECTORY_NAME: ${{ matrix.ffmpeg_directory_name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
$VCINSTALLDIR = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath)
|
$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"
|
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"
|
Invoke-WebRequest "${env:FFMPEG_DOWNLOAD_URL}" -OutFile "${env:FFMPEG_DIRECTORY_NAME}.zip"
|
||||||
Expand-Archive -Path "ffmpeg-${env:FFMPEG_VERSION}-win64-dev.zip" -DestinationPath .
|
Expand-Archive -Path "${env:FFMPEG_DIRECTORY_NAME}.zip" -DestinationPath .
|
||||||
Write-Output "::set-env name=FFMPEG_DIR::${pwd}\ffmpeg-${env:FFMPEG_VERSION}-win64-dev"
|
Write-Output "::set-env name=FFMPEG_DIR::${pwd}\${env:FFMPEG_DIRECTORY_NAME}"
|
||||||
- name: Set up Rust
|
- name: Set up Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user