forked from nanocurrency/nano-node
-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
53 lines (50 loc) · 2.64 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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
max_jobs: 2
image: Visual Studio 2017
configuration: Release
platform: x64
environment:
VCPKG_DIR: C:\Tools\vcpkg
matrix:
- network: btcb_live_network
configuration: Release
- network: btcb_beta_network
configuration: RelWithDebInfo
clone_folder: C:\projects\myproject
cache: $VCPKG_DIR%\installed\
install:
- git submodule update --init --recursive
- echo set (VCPKG_LIBRARY_LINKAGE static) > temp.txt
- type %VCPKG_DIR%\ports\rocksdb\portfile.cmake >> temp.txt
- type temp.txt > %VCPKG_DIR%\ports\rocksdb\portfile.cmake
- del temp.txt
- echo set(VCPKG_BUILD_TYPE release) >> C:\Tools\vcpkg\triplets\x64-windows.cmake
- vcpkg install rocksdb:%PLATFORM%-windows
- IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (set APPVEYOR_REPO_TAG_NAME=NOT_ARTIFACT)
- set TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%
- cmake -DBTCB_GUI=ON -DBTCB_POW_SERVER=ON -DCI_BUILD=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DACTIVE_NETWORK=%NETWORK% -DQt5_DIR="C:\Qt\5.9\msvc2017_64\lib\cmake\Qt5" -DBTCB_SIMD_OPTIMIZATIONS=TRUE -DBoost_COMPILER="-vc141" -DBOOST_ROOT="C:/Libraries/boost_1_67_0" -DBOOST_LIBRARYDIR="C:/Libraries/boost_1_67_0/lib64-msvc-14.1" -G "Visual Studio 15 2017 Win64" -DBTCB_ROCKSDB=ON -DROCKSDB_LIBRARIES="%VCPKG_DIR%\installed\x64-windows\lib\rocksdb.lib" -DROCKSDB_INCLUDE_DIRS="%VCPKG_DIR%\installed\x64_windows\include" -DZLIB_LIBRARY=%VCPKG_DIR%\installed\x64-windows\lib\zlib.lib -DZLIB_INCLUDE_DIR=%VCPKG_DIR%\installed\x64-windows\include -DIPHLPAPI_LIBRARY="C:/Program Files (x86)/Windows Kits/10/Lib/10.0.14393.0/um/x64/iphlpapi.lib" -DWINSOCK2_LIBRARY="C:/Program Files (x86)/Windows Kits/10/Lib/10.0.14393.0/um/x64/WS2_32.lib" .
- ps: Invoke-WebRequest -Uri https://aka.ms/vs/15/release/vc_redist.x64.exe -OutFile .\vc_redist.x64.exe
build:
project: INSTALL.vcxproj
parallel: true
verbosity: minimal
after_build:
- ps: |
if (Test-Path env:CSC_LINK) {
$path = Join-Path -Path "$env:TMP" -ChildPath csc.p12
[IO.File]::WriteAllBytes($path, [Convert]::FromBase64String($env:CSC_LINK))
$args = -split 'sign /a /ph /tr http://timestamp.digicert.com /td sha256 /fd sha256'
$args += @('/f', $path, '/p', $env:CSC_KEY_PASSWORD, "$env:APPVEYOR_BUILD_FOLDER\$env:CONFIGURATION\*.exe")
. 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe' $args
}
- cmd: >-
cpack -C %CONFIGURATION% --verbose --config ./CPackConfig.cmake
cpack -G ZIP -C %CONFIGURATION% --verbose --config ./CPackConfig.cmake
artifacts:
- path: btcb*.zip
name: btcb_release_%network%
- path: btcb-node-*.exe
name: btcb-node-%network%