Update ffmpeg.yml
This commit is contained in:
parent
7b55091f9a
commit
bfba420158
62
.github/workflows/ffmpeg.yml
vendored
62
.github/workflows/ffmpeg.yml
vendored
@ -13,10 +13,10 @@ env:
|
|||||||
msysConfig: debug
|
msysConfig: debug
|
||||||
winConfig: Debug
|
winConfig: Debug
|
||||||
cFlags: -MDd
|
cFlags: -MDd
|
||||||
|
switches: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
libogg:
|
liboggvorbis:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -35,60 +35,36 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global core.autocrlf false
|
git config --global core.autocrlf false
|
||||||
git config --global core.eol lf
|
git config --global core.eol lf
|
||||||
- name: Checkout LibOGG
|
- name: Checkout Ogg
|
||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
with:
|
||||||
repository: xiph/ogg
|
repository: xiph/ogg
|
||||||
ref: master
|
ref: master
|
||||||
path: repo
|
path: ogg
|
||||||
- name: Build LibOGG
|
- name: Checkout Vorbis
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
|
||||||
md build dist
|
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd repo ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; cd ../build ; tar czf ../dist/libogg.tgz *'
|
|
||||||
- name: Publish artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: libogg
|
|
||||||
path: dist/libogg.tgz
|
|
||||||
|
|
||||||
libvorbis:
|
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- name: Set up MSYS2
|
|
||||||
uses: msys2/setup-msys2@v2
|
|
||||||
with:
|
|
||||||
install: base-devel binutils autotools automake
|
|
||||||
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 LibVORBIS
|
|
||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
with:
|
||||||
repository: xiph/vorbis
|
repository: xiph/vorbis
|
||||||
ref: master
|
ref: master
|
||||||
path: repo
|
path: vorbis
|
||||||
- name: Build LibVORBIS
|
- name: Build Ogg
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
md build dist
|
md build
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd repo ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/libvorbis.tgz *'
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install'
|
||||||
|
- name: Build Vorbis
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
md dist
|
||||||
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *'
|
||||||
|
echo "switches=${{env.switches}} --enable-encoder=libopus --enable-encoder=libvorbis" >> $GITHUB_ENV
|
||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libvorbis
|
name: liboggvorbis
|
||||||
path: dist/libvorbis.tgz
|
path: dist/liboggvorbis.tgz
|
||||||
|
|
||||||
nvenc:
|
nvenc:
|
||||||
if: ${{ false }}
|
if: ${{ false }}
|
||||||
@ -177,7 +153,7 @@ jobs:
|
|||||||
ffmpeg:
|
ffmpeg:
|
||||||
if: ${{ false }}
|
if: ${{ false }}
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
needs: [nvenc,amf,onevpl,libsvtav1,libvorbis,libsnappy,libvpx,libfdk-aac,libmp3lame,libzimg,libopus,libogg,libx264,libx265]
|
needs: [nvenc,amf,onevpl,libsvtav1,libsnappy,libvpx,libfdk-aac,libmp3lame,libzimg,libopus,liboggvorbis,libx264,libx265]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user