ci: Improved caching, re-use OBS dependencies and logging

Massively speeds up repeated builds by not relying on random undeterministic download speeds of the AppVeyor machines, in addition to reducing the stress on the remote end for each build done. Additionally the logging changes make it so that the errors and warnings are shown in the AppVeyor UI.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2018-11-24 13:15:10 +01:00
parent 120ddcd7e4
commit 71e04315ca
2 changed files with 12 additions and 3 deletions
+9
View File
@@ -23,6 +23,15 @@ after_build:
cache:
- inno.exe
- build/32/obsdeps-build
- build/32/obsdeps-download
- build/32/obsdeps-src
- build/32/libobs-build
- build/32/libobs-download
- build/32/libobs-src
- build/64/libobs-build
- build/64/libobs-download
- build/64/libobs-src
artifacts:
- path: build/obs-ffmpeg-encoder-*.zip
+3 -3
View File
@@ -1,4 +1,4 @@
cmake -H. -B"build/32" -G"Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX="%CD%/build/distrib" -DCMAKE_PACKAGE_PREFIX="%CD%/build" -DCMAKE_PACKAGE_NAME="obs-ffmpeg-encoder"
cmake -H. -B"build/64" -G"Visual Studio 15 2017 Win64" -T"host=x64" -DCMAKE_INSTALL_PREFIX="%CD%/build/distrib" -DCMAKE_PACKAGE_PREFIX="%CD%/build" -DCMAKE_PACKAGE_NAME="obs-ffmpeg-encoder"
cmake --build build/32 --target INSTALL --config RelWithDebInfo
cmake --build build/64 --target INSTALL --config RelWithDebInfo
cmake -H. -B"build/64" -G"Visual Studio 15 2017 Win64" -T"host=x64" -DCMAKE_INSTALL_PREFIX="%CD%/build/distrib" -DCMAKE_PACKAGE_PREFIX="%CD%/build" -DCMAKE_PACKAGE_NAME="obs-ffmpeg-encoder" -DOBS_DEPENDENCIES_DIR="%CD%/build/32/obsdeps-src"
cmake --build build/32 --target INSTALL --config RelWithDebInfo -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
cmake --build build/64 --target INSTALL --config RelWithDebInfo -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"