kepka/appveyor.yml

71 lines
1.8 KiB
YAML

pull_requests:
do_not_increment_build_number: true
branches:
except:
- upstream-dev
- upstream-master
skip_branch_with_pr: true
image: Visual Studio 2017
shallow_clone: true
clone_folder: C:\projects\tdesktop
test: off
deploy: off
matrix:
fast_finish: true
cache:
- c:\tools\vcpkg\installed\
environment:
qt_dir: C:\Qt\5.9\msvc2017_64
install:
- cmd: >-
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
mkdir %APPVEYOR_BUILD_FOLDER%\build
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
before_build:
- cmd: >-
set PATH=C:\Python35;%QT_DIR%\bin;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cd %APPVEYOR_BUILD_FOLDER%\build
build_script:
- cmd: >-
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake --build . --config RelWithDebInfo
after_build:
- cmd: >-
for %%f in (Qt5Core,Qt5Gui,Qt5Network,Qt5Widgets) do xcopy %QT_DIR%\bin\%%f.dll Telegram /Q /Y /I
xcopy %QT_DIR%\plugins\imageformats\qwebp.dll Telegram\imageformats\ /Q /Y /I
xcopy %QT_DIR%\plugins\imageformats\qjpeg.dll Telegram\imageformats\ /Q /Y /I
xcopy %QT_DIR%\plugins\platforms\qwindows.dll Telegram\platforms\ /Q /Y /I
7z a -mmt kepka.zip Telegram\Telegram.exe Telegram\Telegram.pdb Telegram\*.dll Telegram\platforms\* Telegram\imageformats\*
artifacts:
- path: build\kepka.zip
notifications:
- provider: GitHubPullRequest
auth_token:
secure: RTsEg5GuO6yWL2ha/fURkT9p6pzW/DS/yT0dR8Re7HsHxtQRkzaKU15n7pQdtEPN