mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
ci: Integrate AppVeyor building
Remember to update the version with each release!
This commit is contained in:
parent
a3a72089f7
commit
407f39271e
2 changed files with 56 additions and 0 deletions
34
appveyor.yml
Normal file
34
appveyor.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
version: 0.3.0-{build}-{branch}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
CURL_VERSION: 7.39.0
|
||||||
|
|
||||||
|
pull_requests:
|
||||||
|
do_not_increment_build_number: true
|
||||||
|
|
||||||
|
image:
|
||||||
|
- Visual Studio 2013
|
||||||
|
- Visual Studio 2015
|
||||||
|
- Visual Studio 2017
|
||||||
|
|
||||||
|
platform: x64
|
||||||
|
|
||||||
|
install:
|
||||||
|
- curl -kL https://cdn.xaymar.com/obs/prebuilt/obs-studio-20.1.0.7z -f --retry 5 -o deps-obs.7z -z deps-obs.7z
|
||||||
|
- 7z x deps-obs.7z -odeps/obs
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- cmd: ci/make.bat
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- call msbuild /m /p:Configuration=RelWithDebInfo C:\projects\obs-stream-effects\build\32\install.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
|
- call msbuild /m /p:Configuration=RelWithDebInfo C:\projects\obs-stream-effects\build\64\install.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
|
- call msbuild /m /p:Configuration=RelWithDebInfo C:\projects\obs-stream-effects\build\64\PACKAGE_ZIP.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
|
- call msbuild /m /p:Configuration=RelWithDebInfo C:\projects\obs-stream-effects\build\64\PACKAGE_7ZIP.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- deps-obs.7z
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: build/distrib/*.zip
|
||||||
|
- path: build/distrib/*.7z
|
22
ci/make.bat
Normal file
22
ci/make.bat
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
mkdir build
|
||||||
|
mkdir build\32
|
||||||
|
mkdir build\64
|
||||||
|
|
||||||
|
IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (
|
||||||
|
cd build\32
|
||||||
|
cmake -g "Visual Studio 12 2013" --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="" ../..
|
||||||
|
cd ..\64
|
||||||
|
cmake -g "Visual Studio 12 2013 Win64" -A x64 --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="" ../..
|
||||||
|
) ELSE IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
|
||||||
|
cd build\32
|
||||||
|
cmake -g "Visual Studio 14 2015" --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="vs2015_" ../..
|
||||||
|
cd ..\64
|
||||||
|
cmake -g "Visual Studio 14 2015 Win64" -A x64 --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="vs2015_" ../..
|
||||||
|
) ELSE IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
|
||||||
|
cd build\32
|
||||||
|
cmake -g "Visual Studio 15 2017" --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="vs2017_" ../..
|
||||||
|
cd ..\64
|
||||||
|
cmake -g "Visual Studio 15 2017 Win64" -A x64 --target INSTALL -DPATH_OBSStudio="%CD%/deps/obs" -DINSTALL_DIR="../distrib" -DPACKAGE_SUFFIX=".%APPVEYOR_BUILD_VERSION%" -DPACKAGE_PREFIX="vs2017_" ../..
|
||||||
|
)
|
||||||
|
|
||||||
|
cd ..\..
|
Loading…
Reference in a new issue