46 lines
1.9 KiB
YAML
46 lines
1.9 KiB
YAML
image: Visual Studio 2017
|
|
environment:
|
|
CURL_VERSION: 7.56.1
|
|
|
|
install:
|
|
- git submodule update --init --recursive
|
|
- if exist dependencies2017.zip (curl -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -z dependencies2017.zip) else (curl -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -C -)
|
|
- if exist vlc.zip (curl -kLO https://obsproject.com/downloads/vlc.zip -f --retry 5 -z vlc.zip) else (curl -kLO https://obsproject.com/downloads/vlc.zip -f --retry 5 -C -)
|
|
- 7z x dependencies2017.zip -odependencies2017
|
|
- 7z x vlc.zip -ovlc
|
|
- set DepsPath32=%CD%\dependencies2017\win32
|
|
- set DepsPath64=%CD%\dependencies2017\win64
|
|
- set VLCPath=%CD%\vlc
|
|
- set QTDIR32=C:\Qt\5.11.1\msvc2015
|
|
- set QTDIR64=C:\Qt\5.11.1\msvc2017_64
|
|
- set build_config=RelWithDebInfo
|
|
- mkdir build build32 build64
|
|
- cd ./build32
|
|
- cmake -G "Visual Studio 15 2017" -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DBUILD_CAPTIONS=true -DCOMPILE_D3D12_HOOK=true ..
|
|
- cd ../build64
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DBUILD_CAPTIONS=true -DCOMPILE_D3D12_HOOK=true ..
|
|
|
|
build_script:
|
|
- call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build32\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
- call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build64\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
before_deploy:
|
|
- C:\projects\obs-studio\CI\before-deploy-win.cmd
|
|
|
|
deploy_script:
|
|
- ps: Push-AppveyorArtifact "build.zip" -FileName "$(git describe).zip"
|
|
|
|
test: off
|
|
|
|
cache:
|
|
- dependencies2017.zip
|
|
- vlc.zip
|
|
|
|
notifications:
|
|
- provider: Webhook
|
|
url:
|
|
secure: k1kpaz4CB5Rg5a3MTb4XKnd76fJ+9ozz5RACVnNjdgmAjA1OSssZ6LZ3g0NGfzc/
|
|
headers:
|
|
Authorization:
|
|
secure: A0PBwpHtsYzBOuye1EeS0fl562T0NZEInwZp0ZVER1wLQSeE6gzWGrRo2a0E7hii
|