Update build.yml

This commit is contained in:
Daniel Stankewitz 2022-03-20 17:13:29 +01:00 committed by GitHub
parent 3f86a446f7
commit 9bc98342e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ on:
description: 'Configuration' description: 'Configuration'
required: true required: true
default: 'Debug' default: 'Debug'
jobs: jobs:
FFmpeg: FFmpeg:
@ -16,13 +16,37 @@ jobs:
steps: steps:
- name: Set up development tools - name: Set up development tools
shell: cmd shell: cmd
run: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
FOR /F "delims==" %%G IN ('where cl.exe') DO SET _cl_path=%%G
echo CL_EXEC="%_cl_path%"
echo WSL_CL_EXEC=`wslpath -u "$CL_EXEC"`
echo WSL_CL_PATH=`dirname "$WSL_CL_EXEC"`
echo export PATH=$PATH:$WSL_CL_PATH
echo export DevEnvDir="%DevEnvDir% "
rem ExtensionSdkDir
rem FSHARPINSTALLDIR
rem Framework40Version
rem FrameworkDIR32
rem FrameworkDir
rem FrameworkVersion
rem FrameworkVersion32
echo export INCLUDE="%INCLUDE% "
echo export LIB="%LIB% "
echo export LIBPATH="%LIBPATH% "
echo export VCINSTALLDIR="%VCINSTALLDIR% "
echo export VSINSTALLDIR="%VSINSTALLDIR% "
echo export VisualStudioVersion="%VisualStudioVersion% "
rem echo export WindowsSDK_ExecutablePath_x64=%WindowsSDK_ExecutablePath_x64%
rem echo export WindowsSDK_ExecutablePath_x86=%WindowsSDK_ExecutablePath_x86%
rem echo export WindowsSdkDir=%WindowsSdkDir%
echo export WSLcross=true
echo export WSLENV=$WSLENV:INCLUDE/w:LIB/w:LIBPATH/w
- name: Set up WSL - name: Set up WSL
uses: Vampire/setup-wsl@v1.2.0 uses: Vampire/setup-wsl@v1.2.0
- name: Build FFmpeg - name: Build FFmpeg
shell: wsl-bash {0} shell: wsl-bash {0}
run: | run: |
set
echo $PATH echo $PATH
cl.exe cl.exe
MSBuild.exe MSBuild.exe