44 Commits

Author SHA1 Message Date
6d8af9bd2a Update ffmpeg.yml 2022-08-04 08:41:38 +02:00
cf5c490ca7 Update ffmpeg.yml 2022-08-03 23:34:44 +02:00
740c0f1443 Update ffmpeg.yml 2022-08-03 23:33:24 +02:00
8e736fc176 Update ffmpeg.yml 2022-08-03 22:17:11 +02:00
0794129eb3 Update ffmpeg.yml 2022-08-03 21:02:31 +02:00
a510ee6450 Update ffmpeg.yml 2022-08-03 20:33:47 +02:00
cadbae2468 Update action.yml 2022-08-03 20:03:46 +02:00
eed4f3bfd2 Update build.yml 2022-08-03 19:35:03 +02:00
1173e86544 Update ffmpeg.yml 2022-08-03 19:34:47 +02:00
e4f69871fa Update ffmpeg-cartwheel.yml 2022-07-28 10:30:13 +02:00
847b88a4b4 Create ffmpeg-cartwheel.yml 2022-07-28 10:01:49 +02:00
beb2862876 Update build.yml 2022-07-27 06:32:25 +02:00
bf9c403d51 Delete test.yml 2022-07-26 15:24:57 +02:00
4fc92a4b53 Delete .github/actions/libvorbis directory 2022-07-26 15:24:17 +02:00
1db41d1069 Delete .github/actions/libogg directory 2022-07-26 15:24:05 +02:00
5fce763b97 Update ffmpeg.yml 2022-07-26 15:23:51 +02:00
8cd96d2a1e Update action.yml 2022-07-26 15:18:26 +02:00
adbbe8b0e2 Create action.yml 2022-07-26 15:12:18 +02:00
8c1377ac0b sss 2022-07-26 15:11:49 +02:00
f6b6de8146 Update ffmpeg.yml 2022-07-26 15:08:26 +02:00
d5c4a80332 Update action.yml 2022-07-26 15:02:09 +02:00
89e2887db4 Update action.yml 2022-07-26 15:00:19 +02:00
df491a68fd Update action.yml 2022-07-26 14:59:46 +02:00
4418828161 Update action.yml 2022-07-26 14:58:42 +02:00
158a3f4219 Update action.yml 2022-07-26 14:49:27 +02:00
02c8f9089f Create action.yml 2022-07-26 14:48:07 +02:00
cf638258b7 Update ffmpeg.yml 2022-07-26 14:42:33 +02:00
ebe0343972 Update action.yml 2022-07-26 14:38:18 +02:00
29d3ae53b9 Update action.yml 2022-07-26 14:36:56 +02:00
2744a17ea0 Update action.yml 2022-07-26 14:36:02 +02:00
649f8542d4 Update action.yml 2022-07-26 14:34:22 +02:00
61b2af2760 Update action.yml 2022-07-26 14:32:46 +02:00
6e5afa8bd5 Update ffmpeg.yml 2022-07-26 14:29:08 +02:00
3e5859259a Update ffmpeg.yml 2022-07-26 14:28:13 +02:00
62166944bf Update ffmpeg.yml 2022-07-26 14:21:38 +02:00
85b34eb0c1 Update action.yml 2022-07-26 14:21:04 +02:00
702d6bda6a Update action.yml 2022-07-26 14:20:20 +02:00
3f9ddde766 Update action.yml 2022-07-26 14:18:59 +02:00
28facf1b5f Update action.yml 2022-07-26 14:18:07 +02:00
c3109dbae1 Update action.yml 2022-07-26 14:17:06 +02:00
6d5c133800 inputs. 2022-07-26 14:12:44 +02:00
e979b4ee9d Update action.yml 2022-07-26 14:10:19 +02:00
a2350f473d Update action.yml 2022-07-26 14:08:35 +02:00
36ddb729c5 Update action.yml 2022-07-26 14:00:30 +02:00
16 changed files with 316 additions and 257 deletions

View File

@ -1,7 +1,7 @@
name: libfdkaac name: libfdkaac
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -20,22 +20,14 @@ runs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: mstorsjo/fdk-aac repository: mstorsjo/fdk-aac
ref: v2.0.2 ref: ${{ inputs.refId }}
path: fdkaac path: fdkaac
- name: Check cache
id: libfdkaac-cache
uses: actions/cache@v3
with:
path: dist
key: libfdkaac-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('fdkaac') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libfdkaac-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build FDK AAC - name: Build FDK AAC
if: steps.libfdkaac-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -47,5 +39,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libfdkaac-${{ inputs.env }}-${{ inputs.config }} name: libfdkaac-${{ runner.os }}-${{ inputs.config }}
path: dist/libfdkaac.tgz path: dist/libfdkaac.tgz

View File

@ -1,7 +1,7 @@
name: libmp3lame name: libmp3lame
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -24,9 +24,9 @@ runs:
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build dist md build dist
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/tags/RELEASE__3_100/lame lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz * D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/${{ inputs.refId }}/lame lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libmp3lame-${{ inputs.env }}-${{ inputs.config }} name: libmp3lame-${{ runner.os }}-${{ inputs.config }}
path: dist/libmp3lame.tgz path: dist/libmp3lame.tgz

View File

@ -1,7 +1,10 @@
name: liboggvorbis name: liboggvorbis
inputs: inputs:
env: libogg_refId:
type: string
required: true
libvorbis_refId:
type: string type: string
required: true required: true
config: config:
@ -20,28 +23,20 @@ runs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: xiph/ogg repository: xiph/ogg
ref: v1.3.5 ref: ${{ inputs.libogg_refId }}
path: ogg path: ogg
- name: Checkout Vorbis - name: Checkout Vorbis
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
with: with:
repository: xiph/vorbis repository: xiph/vorbis
ref: v1.3.7 ref: ${{ inputs.libvorbis_refId }}
path: vorbis path: vorbis
- name: Check cache
id: liboggvorbis-cache
uses: actions/cache@v3
with:
path: dist
key: liboggvorbis-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('ogg') }}-${{ hashFiles('vorbis') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake install: base-devel binutils autotools automake
path-type: inherit path-type: inherit
- name: Build Ogg - name: Build Ogg
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -51,7 +46,6 @@ runs:
md build md build
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' 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 - name: Build Vorbis
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -63,5 +57,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: liboggvorbis-${{ inputs.env }}-${{ inputs.config }} name: liboggvorbis-${{ runner.os }}-${{ inputs.config }}
path: dist/liboggvorbis.tgz path: dist/liboggvorbis.tgz

View File

@ -1,7 +1,7 @@
name: libopus name: libopus
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -22,20 +22,12 @@ runs:
repository: xiph/opus repository: xiph/opus
ref: v1.3.1 ref: v1.3.1
path: opus path: opus
- name: Check cache
id: libopus-cache
uses: actions/cache@v3
with:
path: dist
key: libopus-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('opus') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libopus-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build OPUS - name: Build OPUS
if: steps.libopus-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -50,5 +42,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libopus-${{ inputs.env }}-${{ inputs.config }} name: libopus-${{ runner.os }}-${{ inputs.config }}
path: dist/libopus.tgz path: dist/libopus.tgz

View File

@ -1,7 +1,7 @@
name: libsnappy name: libsnappy
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -20,16 +20,9 @@ runs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: google/snappy repository: google/snappy
ref: 1.1.9 ref: ${{ inputs.refId }}
path: snappy path: snappy
- name: Check cache
id: libsnappy-cache
uses: actions/cache@v3
with:
path: dist
key: libsnappy-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('snappy') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libsnappy-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
@ -53,5 +46,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libsnappy-${{ inputs.env }}-${{ inputs.config }} name: libsnappy-${{ runner.os }}-${{ inputs.config }}
path: dist/libsnappy.tgz path: dist/libsnappy.tgz

View File

@ -1,7 +1,7 @@
name: libsvtav1 name: libsvtav1
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -16,26 +16,19 @@ runs:
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 SVT AV1 git clone -b ${{ inputs.refId }} https://gitlab.com/AOMediaCodec/SVT-AV1 svtav1
uses: actions/checkout@v3 #- name: Checkout SVT AV1
with: # uses: actions/checkout@v3
repository: AOMediaCodec/SVT-AV1 # with:
ref: v1.1.0 # repository: AOMediaCodec/SVT-AV1
path: svtav1 # ref: ${{ inputs.refId }}
- name: Check cache # path: svtav1
id: libsvtav1-cache
uses: actions/cache@v3
with:
path: dist
key: libsvtav1-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('svtav1') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build SVT AV1 - name: Build SVT AV1
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -47,5 +40,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libsvtav1-${{ inputs.env }}-${{ inputs.config }} name: libsvtav1-${{ runner.os }}-${{ inputs.config }}
path: dist/libsvtav1.tgz path: dist/libsvtav1.tgz

View File

@ -1,7 +1,7 @@
name: libvpl name: libvpl
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -20,26 +20,18 @@ runs:
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
with: with:
repository: oneapi-src/oneVPL repository: oneapi-src/oneVPL
ref: master ref: ${{ inputs.refId }}
path: onevpl path: onevpl
- name: Check cache
id: libvpl-cache
uses: actions/cache@v3
with:
path: dist
key: libvpl-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('onevpl') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libvpl-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake install: base-devel binutils autotools automake
path-type: inherit path-type: inherit
- name: Build oneVPL - name: Build oneVPL
if: steps.libvpl-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: #env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ # vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} # msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md temp build dist md temp build dist
@ -52,5 +44,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libvpl-${{ inputs.env }}-${{ inputs.config }} name: libvpl-${{ runner.os }}-${{ inputs.config }}
path: dist/libvpl.tgz path: dist/libvpl.tgz

View File

@ -1,7 +1,7 @@
name: libvpx name: libvpx
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -16,21 +16,13 @@ runs:
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
git clone --depth 1 -b v1.12.0 https://github.com/webmproject/libvpx.git vpx git clone --depth 1 -b ${{ inputs.refId }} https://github.com/webmproject/libvpx.git vpx
- name: Check cache
id: libvpx-cache
uses: actions/cache@v3
with:
path: dist
key: libvpx-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('vpx') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libvpx-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build LibVpx - name: Build LibVpx
if: steps.libvpx-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -42,5 +34,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libvpx-${{ inputs.env }}-${{ inputs.config }} name: libvpx-${{ runner.os }}-${{ inputs.config }}
path: dist/libvpx.tgz path: dist/libvpx.tgz

View File

@ -1,7 +1,7 @@
name: libx264 name: libx264
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -20,22 +20,14 @@ runs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: mirror/x264 repository: mirror/x264
ref: stable ref: ${{ inputs.refId }}
path: x264 path: x264
- name: Check cache
id: libx264-cache
uses: actions/cache@v3
with:
path: dist
key: libx264-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x264') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libx264-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build X264 - name: Build X264
if: steps.libx264-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -47,5 +39,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libx264-${{ inputs.env }}-${{ inputs.config }} name: libx264-${{ runner.os }}-${{ inputs.config }}
path: dist/libx264.tgz path: dist/libx264.tgz

View File

@ -1,7 +1,7 @@
name: libx265-10 name: libx265-10
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -16,21 +16,12 @@ runs:
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
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
- name: Check cache
id: libx26510-cache
uses: actions/cache@v3
with:
path: dist
key: libx265-10-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }}
- name: Set up MSBuild - name: Set up MSBuild
if: steps.libx26510-cache.outputs.cache-hit != 'true'
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM - name: Set up NASM
if: steps.libx26510-cache.outputs.cache-hit != 'true'
uses: ilammy/setup-nasm@v1.2.1 uses: ilammy/setup-nasm@v1.2.1
- name: Build X265 (10 bit) - name: Build X265 (10 bit)
if: steps.libx26510-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
@ -44,5 +35,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: x265_10bit-${{ inputs.env }}-${{ inputs.config }} name: x265_10bit-${{ runner.os }}-${{ inputs.config }}
path: dist/x265_10bit.lib path: dist/x265_10bit.lib

View File

@ -1,7 +1,7 @@
name: libx265-12 name: libx265-12
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -16,21 +16,12 @@ runs:
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
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
- name: Check cache
id: libx26512-cache
uses: actions/cache@v3
with:
path: dist
key: libx265-12-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }}
- name: Set up MSBuild - name: Set up MSBuild
if: steps.libx26512-cache.outputs.cache-hit != 'true'
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM - name: Set up NASM
if: steps.libx26512-cache.outputs.cache-hit != 'true'
uses: ilammy/setup-nasm@v1.2.1 uses: ilammy/setup-nasm@v1.2.1
- name: Build X265 (12 bit) - name: Build X265 (12 bit)
if: steps.libx26512-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -48,5 +39,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: x265_12bit-${{ inputs.env }}-${{ inputs.config }} name: x265_12bit-${{ runner.os }}-${{ inputs.config }}
path: dist/x265_12bit.lib path: dist/x265_12bit.lib

View File

@ -1,7 +1,7 @@
name: libx265 name: libx265
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -17,31 +17,20 @@ runs:
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 git clone -b Release_3.5 https://github.com/videolan/x265.git x265
- name: Check cache
id: libx265-cache
uses: actions/cache@v3
with:
path: di
key: libx265-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libx265-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake install: base-devel binutils autotools automake
path-type: inherit path-type: inherit
- name: Set up MSBuild - name: Set up MSBuild
if: steps.libx265-cache.outputs.cache-hit != 'true'
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM - name: Set up NASM
if: steps.libx265-cache.outputs.cache-hit != 'true'
uses: ilammy/setup-nasm@v1.2.1 uses: ilammy/setup-nasm@v1.2.1
- name: Set up dependant libs - name: Set up dependant libs
if: steps.libx265-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
path: build path: build
- name: Build X265 - name: Build X265
if: steps.libx265-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -59,11 +48,11 @@ runs:
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\ move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\
move x265_config.h ..\..\..\..\dist\include\ move x265_config.h ..\..\..\..\dist\include\
cd ..\..\..\.. cd ..\..\..\..
"${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ inputs.env }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ inputs.env }}-${{ inputs.config }}\x265_12bit.lib "${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ runner.os }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ runner.os }}-${{ inputs.config }}\x265_12bit.lib
copy x265\source\x265.h dist\include\ copy x265\source\x265.h dist\include\
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *' D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *'
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libx265-${{ inputs.env }}-${{ inputs.config }} name: libx265-${{ runner.os }}-${{ inputs.config }}
path: di/libx265.tgz path: di/libx265.tgz

View File

@ -1,7 +1,7 @@
name: libzimg name: libzimg
inputs: inputs:
env: refId:
type: string type: string
required: true required: true
config: config:
@ -20,22 +20,14 @@ runs:
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
with: with:
repository: sekrit-twc/zimg repository: sekrit-twc/zimg
ref: release-3.0.4 ref: ${{ inputs.refId }}
path: zimg path: zimg
- name: Check cache
id: libzimg-cache
uses: actions/cache@v3
with:
path: dist
key: libzimg-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('zimg') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libzimg-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Build ZIMG - name: Build ZIMG
if: steps.libzimg-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
env: env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -48,5 +40,5 @@ runs:
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libzimg-${{ inputs.env }}-${{ inputs.config }} name: libzimg-${{ runner.os }}-${{ inputs.config }}
path: dist/libzimg.tgz path: dist/libzimg.tgz

View File

@ -9,17 +9,15 @@ jobs:
ffmpeg-static-debug: ffmpeg-static-debug:
uses: ./.github/workflows/ffmpeg.yml uses: ./.github/workflows/ffmpeg.yml
with: with:
env: windows-2022 system: windows-2022
source: ffmpeg
type: static type: static
config: debug config: debug
ffmpegRef: release/5.0 ffmpegRef: release/5.1
ffmpeg-static-release: ffmpeg-static-release:
uses: ./.github/workflows/ffmpeg.yml uses: ./.github/workflows/ffmpeg.yml
with: with:
env: windows-2022 system: windows-2022
source: ffmpeg
type: static type: static
config: release config: release
ffmpegRef: release/5.0 ffmpegRef: release/5.1

220
.github/workflows/ffmpeg-cartwheel.yml vendored Normal file
View File

@ -0,0 +1,220 @@
name: 'Build FFmpeg from cartwheel'
on:
workflow_dispatch:
inputs:
system:
type: choice
required: true
default: 'windows-2022'
description: 'System'
options:
- windows-2022
type:
type: choice
required: true
default: 'static'
description: Type
options:
- static
- shared
config:
type: choice
required: true
default: 'debug'
description: 'Configuration'
options:
- debug
- release
workflow_call:
inputs:
system:
type: string
required: true
type:
type: string
required: true
config:
type: string
required: true
ffmpegRef:
type: string
required: true
env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
NASM_EXECUTABLE: nasm
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
jobs:
libvpl:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libvpl
with:
refId: master
config: ${{ inputs.config }}
liboggvorbis:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/liboggvorbis
with:
libogg_refId: v1.3.5
libvorbis_refId: v1.3.7
config: ${{ inputs.config }}
libsvtav1:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libsvtav1
with:
refId: v1.1.0
config: ${{ inputs.config }}
libsnappy:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libsnappy
with:
refId: 1.1.9
config: ${{ inputs.config }}
libvpx:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libvpx
with:
refId: v1.12.0
config: ${{ inputs.config }}
libmp3lame:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libmp3lame
with:
refId: tags/RELEASE__3_100
config: ${{ inputs.config }}
libzimg:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libzimg
with:
refId: release-3.0.4
config: ${{ inputs.config }}
libopus:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libopus
with:
refId: v1.3.1
config: ${{ inputs.config }}
libfdkaac:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libfdkaac
with:
refId: v2.0.2
config: ${{ inputs.config }}
libx264:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libx264
with:
refId: stable
config: ${{ inputs.config }}
libx265-12:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libx265-12
with:
refId: Release_3.5
config: ${{ inputs.config }}
libx265-10:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libx265-10
with:
refId: Release_3.5
config: ${{ inputs.config }}
libx265:
runs-on: ${{ inputs.system }}
needs: [libx265-12,libx265-10]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libx265
with:
refId: Release_3.5
config: ${{ inputs.config }}
cartwheel:
runs-on: ${{ inputs.system }}
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Set up GIT
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global user.email "daniel.stankewitz@gmail.com"
git config --global user.name "Daniel Stankewitz"
- name: Checkout patches
uses: actions/checkout@v3.0.0
- name: Checkout NvEnc
uses: actions/checkout@v3.0.0
with:
repository: FFmpeg/nv-codec-headers
ref: master
path: nvenc
- name: Checkout AMF
uses: actions/checkout@v3.0.0
with:
repository: GPUOpen-LibrariesAndSDKs/AMF
ref: master
path: amf
- name: Set up artifacts
uses: actions/download-artifact@v3
with:
path: build_artifacts
- name: Build FFmpeg from Cartwheel
shell: cmd
run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build dist
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout b3f9843cffd4118e35bb000779444ca2f4196342 ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout 2757a1d43ca83a3762b24a7ddd74b3291873f89c ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: FFmpeg ${{ runner.os }} ${{ inputs.type }} ${{ inputs.config }} package build
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz

View File

@ -3,23 +3,14 @@ name: 'Build FFmpeg'
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
env: system:
type: choice type: choice
required: true required: true
default: 'windows-2022' default: 'windows-2022'
description: 'Environment' description: 'System'
options: options:
- windows-2022 - windows-2022
source:
type: choice
required: true
default: 'ffmpeg'
description: Source
options:
- ffmpeg
- cartwheel
type: type:
type: choice type: choice
required: true required: true
@ -41,15 +32,12 @@ on:
ffmpegRef: ffmpegRef:
type: string type: string
required: true required: true
default: 'release/5.0' default: 'release/5.1'
description: 'FFmpeg refId' description: 'FFmpeg refId'
workflow_call: workflow_call:
inputs: inputs:
env: system:
type: string
required: true
source:
type: string type: string
required: true required: true
type: type:
@ -72,177 +60,128 @@ env:
jobs: jobs:
libvpl: libvpl:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
if: ${{ inputs.source == 'cartwheel' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libvpl - uses: ./.github/actions/libvpl
with: with:
env: ${{ inputs.env }} refId: master
config: ${{ inputs.config }} config: ${{ inputs.config }}
liboggvorbis: liboggvorbis:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/liboggvorbis - uses: ./.github/actions/liboggvorbis
with: with:
env: ${{ inputs.env }} libogg_refId: v1.3.5
libvorbis_refId: v1.3.7
config: ${{ inputs.config }} config: ${{ inputs.config }}
libsvtav1: libsvtav1:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libsvtav1 - uses: ./.github/actions/libsvtav1
with: with:
env: ${{ inputs.env }} refId: v1.2.0
config: ${{ inputs.config }} config: ${{ inputs.config }}
libsnappy: libsnappy:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libsnappy - uses: ./.github/actions/libsnappy
with: with:
env: ${{ inputs.env }} refId: 1.1.9
config: ${{ inputs.config }} config: ${{ inputs.config }}
libvpx: libvpx:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libvpx - uses: ./.github/actions/libvpx
with: with:
env: ${{ inputs.env }} refId: v1.12.0
config: ${{ inputs.config }} config: ${{ inputs.config }}
libmp3lame: libmp3lame:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libmp3lame - uses: ./.github/actions/libmp3lame
with: with:
env: ${{ inputs.env }} refId: tags/RELEASE__3_100
config: ${{ inputs.config }} config: ${{ inputs.config }}
libzimg: libzimg:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libzimg - uses: ./.github/actions/libzimg
with: with:
env: ${{ inputs.env }} refId: release-3.0.4
config: ${{ inputs.config }} config: ${{ inputs.config }}
libopus: libopus:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libopus - uses: ./.github/actions/libopus
with: with:
env: ${{ inputs.env }} refId: v1.3.1
config: ${{ inputs.config }} config: ${{ inputs.config }}
libfdkaac: libfdkaac:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libfdkaac - uses: ./.github/actions/libfdkaac
with: with:
env: ${{ inputs.env }} refId: v2.0.2
config: ${{ inputs.config }} config: ${{ inputs.config }}
libx264: libx264:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libx264 - uses: ./.github/actions/libx264
with: with:
env: ${{ inputs.env }} refId: stable
config: ${{ inputs.config }} config: ${{ inputs.config }}
libx265-12: libx265-12:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libx265-12 - uses: ./.github/actions/libx265-12
with: with:
env: ${{ inputs.env }} refId: Release_3.5
config: ${{ inputs.config }} config: ${{ inputs.config }}
libx265-10: libx265-10:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libx265-10 - uses: ./.github/actions/libx265-10
with: with:
env: ${{ inputs.env }} refId: Release_3.5
config: ${{ inputs.config }} config: ${{ inputs.config }}
libx265: libx265:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
needs: [libx265-12,libx265-10] needs: [libx265-12,libx265-10]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libx265 - uses: ./.github/actions/libx265
with: with:
env: ${{ inputs.env }} refId: Release_3.5
config: ${{ inputs.config }} config: ${{ inputs.config }}
cartwheel: ffmpeg:
runs-on: ${{ inputs.env }} runs-on: ${{ inputs.system }}
if: ${{ inputs.source == 'cartwheel' }}
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx] needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
steps: steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Set up GIT
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global user.email "daniel.stankewitz@gmail.com"
git config --global user.name "Daniel Stankewitz"
- name: Checkout patches
uses: actions/checkout@v3.0.0
- name: Checkout NvEnc
uses: actions/checkout@v3.0.0
with:
repository: FFmpeg/nv-codec-headers
ref: master
path: nvenc
- name: Checkout AMF
uses: actions/checkout@v3.0.0
with:
repository: GPUOpen-LibrariesAndSDKs/AMF
ref: master
path: amf
- name: Set up artifacts
uses: actions/download-artifact@v3
with:
path: build_artifacts
- name: Build FFmpeg from Cartwheel
shell: cmd
run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build dist
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout b3f9843cffd4118e35bb000779444ca2f4196342 ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout 2757a1d43ca83a3762b24a7ddd74b3291873f89c ; cd patches ; git apply --ignore-whitespace ../../hotfix.patch ; cd .. ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; cd patches ; git apply --ignore-whitespace ../../hotfix.patch ; cd .. ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl --enable-libvpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: FFmpeg (Cartwheel) ${{ inputs.env }} ${{ inputs.config }} package build
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
ffmpeg:
runs-on: ${{ inputs.env }}
if: ${{ inputs.source == 'ffmpeg' }}
needs: [libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
steps:
- name: Set up MSYS2 - name: Set up MSYS2
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
@ -257,7 +196,6 @@ jobs:
- name: Checkout patches - name: Checkout patches
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
- name: Checkout FFmpeg - name: Checkout FFmpeg
if: ${{ inputs.source == 'ffmpeg' }}
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
with: with:
repository: FFmpeg/FFmpeg.git repository: FFmpeg/FFmpeg.git
@ -283,10 +221,10 @@ jobs:
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 dist 0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace --verbose ../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --pkg-config-flags="--static" --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *' D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace --verbose ../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
- name: Publish FFmpeg artifacts - name: Publish FFmpeg artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: FFmpeg ${{ inputs.env }} ${{ inputs.config }}${{ inputs.config }} package build name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz