Update build.yml

This commit is contained in:
Daniel Stankewitz 2022-03-20 10:22:37 +01:00 committed by GitHub
parent 070b16cc10
commit f017fa549d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,26 +29,17 @@ jobs:
with:
path: ~/build
key: ${{ env.cache-name }}
- name: Set up GIT
shell: cmd {0}
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: Cloning GIT repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Get artifacts
uses: actions/download-artifact@master
with:
name: oneVPL
# - name: Get artifacts
# uses: actions/download-artifact@master
# with:
# name: oneVPL
- name: Build FFmpeg
shell: wsl-bash {0}
run: |
sudo ap-get install dos2unix
git clone -q -b release/5.0 https://github.com/FFmpeg/FFmpeg.git ffmpeg
mkdir build
BUILD=$(realpath build)
tar zxf *.tgz -C build
cd repos/ffmpeg
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags='-MDd -I$BUILD/include' --extra-ldflags='-LIBPATH:$BUILD/lib' --prefix=$BUILD --pkg-config-flags='--static' --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl --enable-libvpl
cd ffmpeg
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags='-MDd -I$BUILD/include' --extra-ldflags='-LIBPATH:$BUILD/lib' --prefix=$BUILD --pkg-config-flags='--static' --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl
ls -laR $BUILD