Skip to content

Commit

Permalink
Build ffmpeg for windows using Universal CRT runtime. (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
tez011 authored May 25, 2024
1 parent 317b1eb commit 6c2859e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-ffmpeg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ jobs:
if: ${{ matrix.os_type == 'windows' }}
uses: msys2/setup-msys2@v2
with:
msystem: ucrt64
update: true
install: >-
wget
Expand All @@ -280,19 +281,19 @@ jobs:
shell: msys2 {0}
run: |
# download working binutils
wget https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-binutils-2.40-4-any.pkg.tar.zst
wget https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-binutils-2.40-4-any.pkg.tar.zst
# install dependencies
pacman -U --noconfirm mingw-w64-x86_64-binutils-2.40-4-any.pkg.tar.zst
pacman -Syu --noconfirm --ignore=mingw-w64-x86_64-binutils \
pacman -U --noconfirm mingw-w64-ucrt-x86_64-binutils-2.40-4-any.pkg.tar.zst
pacman -Syu --noconfirm --ignore=mingw-w64-ucrt-x86_64-binutils \
diffutils \
git \
make \
pkg-config \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-onevpl \
mingw-w64-x86_64-nasm
mingw-w64-ucrt-x86_64-cmake \
mingw-w64-ucrt-x86_64-gcc \
mingw-w64-ucrt-x86_64-onevpl \
mingw-w64-ucrt-x86_64-nasm
- name: Initialize Submodules
# libx265 has issues when using the recursive method of the first checkout action
Expand Down

0 comments on commit 6c2859e

Please sign in to comment.