Update build.yml

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

View File

@ -9,47 +9,10 @@ on:
default: 'Debug' default: 'Debug'
jobs: jobs:
onevpl:
runs-on: windows-2019
steps:
- name: Set up WSL
uses: Vampire/setup-wsl@v1.2.0
with:
distribution: Debian
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: x64
- name: Set up cache
uses: actions/cache@v2
env:
cache-name: cache-ffmpeg
with:
path: ~/build
key: ${{ env.cache-name }}
- name: Cloning GIT repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Build oneVPL
shell: wsl-bash {0}
run: |
PATH=/mnt/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64:/mnt/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin:$PATH
mkdir build dist
cd build
cmake.exe -G "Visual Studio 16 2019" ../repos/oneVPL -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=../dist -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{github.event.inputs.config}} -m oneVPL.sln
cd ../dist
tar czvf ../oneVPL.tgz include lib
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: oneVPL
path: oneVPL.tgz
FFmpeg: FFmpeg:
runs-on: windows-2019 runs-on: windows-2019
needs: [onevpl] needs: []
steps: steps:
- name: Set up WSL - name: Set up WSL
uses: Vampire/setup-wsl@v1.2.0 uses: Vampire/setup-wsl@v1.2.0
@ -68,7 +31,9 @@ jobs:
key: ${{ env.cache-name }} key: ${{ env.cache-name }}
- name: Set up GIT - name: Set up GIT
shell: cmd {0} shell: cmd {0}
run: git config --global core.autocrlf false run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: Cloning GIT repository - name: Cloning GIT repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -80,9 +45,10 @@ jobs:
- name: Build FFmpeg - name: Build FFmpeg
shell: wsl-bash {0} shell: wsl-bash {0}
run: | run: |
sudo ap-get install dos2unix
mkdir build mkdir build
BUILD=$(realpath build) BUILD=$(realpath build)
tar zxf *.tgz -C build tar zxf *.tgz -C build
cd repos/ffmpeg cd repos/ffmpeg
bash -c "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" 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
ls -laR $BUILD ls -laR $BUILD