-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
73 lines (56 loc) · 2.96 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: 1.5.0.{build}
environment:
IPFS: 0.4.23
QT: C:\Qt\5.12\msvc2017_64
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
VCRUNTIME: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\MergeModules\Microsoft_VC141_CRT_x64.msm
BOOST: C:\Libraries\boost_1_69_0
BOOST_LIB: C:\Libraries\boost_1_69_0\lib64-msvc-14.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
VCRUNTIME: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\MergeModules\Microsoft_VC142_CRT_x64.msm
BOOST: C:\Libraries\boost_1_71_0
BOOST_LIB: C:\Libraries\boost_1_71_0\lib64-msvc-14.2
install:
- cmd: >-
cd C:\Tools\vcpkg
git pull --quiet
bootstrap-vcpkg.bat
vcpkg --triplet x64-windows-static install --recurse cryptopp curl openssl pbc nlohmann-json
vcpkg upgrade --no-dry-run
IF NOT EXIST installed\x64-windows-static\tools\go-ipfs\%IPFS%.stamp mkdir downloads && curl https://github.com/ipfs/go-ipfs/releases/download/v%IPFS%/go-ipfs_v%IPFS%_windows-amd64.zip -L -o downloads\ipfs.zip && del installed\x64-windows-static\tools\go-ipfs /Q && 7z x downloads\ipfs.zip -oinstalled\x64-windows-static\tools && echo "yes" > installed\x64-windows-static\tools\go-ipfs\%IPFS%.stamp
cd %APPVEYOR_BUILD_FOLDER%
git submodule update --init --recursive
cache: C:\Tools\vcpkg\installed
build_script:
- cmd: >-
call "%VCVARS%"
cmake -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\DECENT -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DBOOST_ROOT=%BOOST% -DBOOST_LIBRARYDIR=%BOOST_LIB% -DQt5Widgets_DIR=%QT%\lib\cmake\Qt5Widgets -DQt5LinguistTools_DIR=%QT%\lib\cmake\Qt5LinguistTools -G Ninja .
ninja -j2 install
msbuild Windows\DECENTSetup.sln /p:Configuration=Release /p:ProductVersion=%APPVEYOR_BUILD_VERSION% /p:DECENTPath=%APPVEYOR_BUILD_FOLDER%\DECENT /p:QtPath=%QT% /p:IPFSPath=C:\Tools\vcpkg\installed\x64-windows-static\tools\go-ipfs /p:VCRuntimePath="%VCRUNTIME%" /p:OutputPath=%APPVEYOR_BUILD_FOLDER%\%APPVEYOR_BUILD_VERSION%
artifacts:
- path: $(APPVEYOR_BUILD_VERSION)\DECENTSetup.msi
name: MSI
deploy:
- provider: BinTray
username: decent-dcore
api_key:
secure: fc8ctUCKj9rzRdCbbz1K3i8rsJ5fACPvdSsvbVlucIZ7Fa5pb8EERHddfsEIhkkq
subject: decentfoundation
repo: windows
package: DCore
version: $(APPVEYOR_BUILD_VERSION)/dev/$(APPVEYOR_BUILD_VERSION)
artifact: MSI
publish: true
override: true
on:
APPVEYOR_REPO_TAG: true
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: false