ci: pin ffmpeg

This commit is contained in:
Robin Appelman 2023-08-05 18:31:19 +02:00
commit e21fe2cbb7
2 changed files with 15 additions and 4 deletions

View file

@ -51,12 +51,12 @@ jobs:
id: cache-ffmpeg id: cache-ffmpeg
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ffmpeg_build path: ~/ffmpeg_build
key: ${{ runner.os }}-ffmpeg key: ${{ runner.os }}-ffmpeg
- name: Build ffmpeg - name: Build ffmpeg
if: steps.cache-ffmpeg.outputs.cache-hit != 'true' if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
run: | run: |
git clone https://github.com/ffmpeg/ffmpeg --depth 1 git clone https://github.com/ffmpeg/ffmpeg --branch n6.0 --depth 1
cd ffmpeg cd ffmpeg
mkdir build mkdir build
cd build cd build
@ -101,9 +101,11 @@ jobs:
- name: Vcpkg install ffmpeg - name: Vcpkg install ffmpeg
if: steps.cache-vcpkg.outputs.cache-hit != 'true' if: steps.cache-vcpkg.outputs.cache-hit != 'true'
run: | run: |
git clone https://github.com/microsoft/vcpkg --depth 1 git clone https://github.com/microsoft/vcpkg -b 2023.07.21 --single-branch --depth 1
./vcpkg/bootstrap-vcpkg.bat ./vcpkg/bootstrap-vcpkg.bat
./vcpkg/vcpkg.exe install ffmpeg:x64-windows-static cp ${{ github.workspace }}/vcpkg.json ./vcpkg/
./vcpkg/vcpkg x-update-baseline --add-initial-baseline
./vcpkg/vcpkg.exe install
- name: Build - name: Build
env: env:

9
vcpkg.json Normal file
View file

@ -0,0 +1,9 @@
{
"dependencies": [
"ffmpeg:x64-windows-static",
],
"builtin-baseline": "9d47b24eacbd1cd94f139457ef6cd35e5d92cc84",
"overrides": [
{ "name": "ffmpeg:x64-windows-static", "version": "5.1.2" }
]
}