Update build.yml
This commit is contained in:
parent
5744c8a54a
commit
551909adbd
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -29,6 +29,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ~/build
|
path: ~/build
|
||||||
key: ${{ env.cache-name }}
|
key: ${{ env.cache-name }}
|
||||||
|
- name: Set git to use LF
|
||||||
|
run: |
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
git config --global core.eol lf
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3.0.0
|
||||||
|
with:
|
||||||
|
repository: https://github.com/FFmpeg/FFmpeg.git
|
||||||
|
ref: release/5.0
|
||||||
|
path: repo
|
||||||
# - name: Get artifacts
|
# - name: Get artifacts
|
||||||
# uses: actions/download-artifact@master
|
# uses: actions/download-artifact@master
|
||||||
# with:
|
# with:
|
||||||
@ -36,11 +46,9 @@ jobs:
|
|||||||
- name: Build FFmpeg
|
- name: Build FFmpeg
|
||||||
shell: wsl-bash {0}
|
shell: wsl-bash {0}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install git
|
|
||||||
git clone -q -b release/5.0 https://github.com/FFmpeg/FFmpeg.git ffmpeg
|
|
||||||
mkdir build
|
mkdir build
|
||||||
BUILD=$(realpath build)
|
BUILD=$(realpath build)
|
||||||
tar zxf *.tgz -C build
|
tar zxf *.tgz -C build
|
||||||
cd ffmpeg
|
cd repo
|
||||||
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
|
PKG_CONFIG_PATH=../repo/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags='-MDd -I../repo/include' --extra-ldflags='-LIBPATH:../repo/lib' --prefix=../repo --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
|
ls -laR $BUILD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user