From 407f39271edacb449ec8aa80557075788f5b53bf Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 5 Nov 2017 14:34:53 +0100 Subject: [PATCH] ci: Integrate AppVeyor building Remember to update the version with each release! --- appveyor.yml | 34 ++++++++++++++++++++++++++++++++++ ci/make.bat | 22 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 appveyor.yml create mode 100644 ci/make.bat diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..64ee9b46 --- /dev/null +++ b/appveyor.yml @@ -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 \ No newline at end of file diff --git a/ci/make.bat b/ci/make.bat new file mode 100644 index 00000000..b9e16ebd --- /dev/null +++ b/ci/make.bat @@ -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 ..\.. \ No newline at end of file