Update ffmpeg.yml
This commit is contained in:
parent
e5f2e27aef
commit
cbcba252f1
54
.github/workflows/ffmpeg.yml
vendored
54
.github/workflows/ffmpeg.yml
vendored
@ -373,6 +373,7 @@ jobs:
|
|||||||
path: dist/libopus.tgz
|
path: dist/libopus.tgz
|
||||||
|
|
||||||
libx264:
|
libx264:
|
||||||
|
if: ${{ false }}
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -410,11 +411,60 @@ jobs:
|
|||||||
path: dist/libx264.tgz
|
path: dist/libx264.tgz
|
||||||
|
|
||||||
libx265:
|
libx265:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
run: echo "bla"
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||||
|
path-type: inherit
|
||||||
|
- name: Set up cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
env:
|
||||||
|
cache-name: cache-ffmpeg-${{ env.msysConfig }}
|
||||||
|
with:
|
||||||
|
path: cache
|
||||||
|
key: cache-key
|
||||||
|
- name: Set up GIT
|
||||||
|
run: |
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
git config --global core.eol lf
|
||||||
|
- name: Checkout X265
|
||||||
|
uses: actions/checkout@v3.0.0
|
||||||
|
with:
|
||||||
|
repository: videolan/x265
|
||||||
|
ref: stable
|
||||||
|
path: x265
|
||||||
|
- name: Build X265
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
md build build\include build\lib build\lib\pkgconfig dist
|
||||||
|
cd x265\build\vc15-x86_64
|
||||||
|
mkdir work work10 work12
|
||||||
|
cd work12
|
||||||
|
cmake -G "Visual Studio 16 2019" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||||
|
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||||
|
cp ${{ env.winConfig }}/x265-static.lib ../work/x265_12bit.lib
|
||||||
|
cd ../work10
|
||||||
|
cmake -G "Visual Studio 16 2019" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||||
|
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||||
|
cp ${{ env.winConfig }}/x265-static.lib ../work/x265_10bit.lib
|
||||||
|
cd ../work
|
||||||
|
cmake -G "Visual Studio 16 2019" ../../../source -DCMAKE_INSTALL_PREFIX=../../../../build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="x265_10bit.lib;x265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||||
|
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||||
|
cp ${{ env.winConfig }}/x265-static.lib ./x265_main.lib
|
||||||
|
LIB.EXE /ignore:4006 /ignore:4221 /OUT:x265.lib x265_main.lib x265_10bit.lib x265_12bit.lib
|
||||||
|
cp x265.lib ../../../../build/lib/x265.lib
|
||||||
|
cp x265.pc ../../../../build/lib/pkgconfig/x265.pc
|
||||||
|
cp x265_config.h ../../../../build/include/
|
||||||
|
cp ../../../source/x265.h ../../../../build/include/
|
||||||
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ../../../../build ; tar czf ../dist/libx265.tgz *'
|
||||||
|
- name: Publish artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: libx265
|
||||||
|
path: dist/libx265.tgz
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
if: ${{ false }}
|
if: ${{ false }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user