-
Notifications
You must be signed in to change notification settings - Fork 64
/
.appveyor.yml
128 lines (109 loc) · 4 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# branches to build
branches:
# blacklist
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
# scripts that run after cloning repository
install:
- pip install conan
# stop all if one is failing
matrix:
fast_finish: true
environment:
global:
OPENCL_INCLUDE_DIR: C:\Intel\OpenCL\sdk\include
OPENCL_LIB_DIR: C:\Intel\OpenCL\sdk\lib\x64\OpenCL.lib
matrix:
- GPU: OFF
- GPU: ON
cache:
- C:\Intel\OpenCL
- C:\Program Files (x86)\Common Files\Intel\OpenCL
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
parallel: true # enable MSBuild parallel builds
project: creepMiner.vcxproj # path to Visual Studio solution or project
# MSBuild verbosity level
verbosity: normal
# scripts to run before build
before_build:
- IF "%GPU%" == "ON" ( IF NOT EXIST "C:\Intel\OpenCL\" ( appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/12527/intel_sdk_for_opencl_2017_7.0.0.2567.exe" ) )
- IF "%GPU%" == "ON" ( IF NOT EXIST "C:\Intel\OpenCL\" ( start /wait .\intel_sdk_for_opencl_2017_7.0.0.2567.exe install --output=output.log --eula=accept ) )
- IF "%GPU%" == "ON" ( IF NOT EXIST "C:\Program Files (x86)\Common Files\Intel\OpenCL\" ( appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/12512/opencl_runtime_16.1.2_x64_setup.msi" ) )
- IF "%GPU%" == "ON" ( IF NOT EXIST "C:\Program Files (x86)\Common Files\Intel\OpenCL\" ( start /wait msiexec /i opencl_runtime_16.1.2_x64_setup.msi /qn /l*v clruntime.log ) )
- pip install conan
- mkdir C:\projects\creepMiner\bin\Release
- cd C:\projects\creepminer
- conan install . -o Poco:shared=False -o OpenSSL:shared=False -o zlib:shared=False --build=missing
- cmake CMakeLists.txt -G "Visual Studio 15 2017 Win64" -DUSE_CUDA=OFF -DUSE_OPENCL=%GPU% -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% -DOpenCL_LIBRARY=%OPENCL_LIB_DIR%
# scripts to run after build
after_build:
- CPack -C Release
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing a single file
- path: '*.zip'
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /.*\.zip/
draft: false
prerelease: false
force_update: true
auth_token:
secure: cIGGvYiRLrapIH5uW9tl18cGB7qgBTTkrOo+yFo0Hcv7zl0KYu0qUaxFRvKLj1Yi
on:
branch: master
appveyor_repo_tag: true # deploy on tag push only
- provider: BinTray
username: creepsky
repo: creepMiner
api_key:
secure: KkWiYEwxZuF+y1XOTWasSx0MT5GRP4f4o8k4TzavQl2lqzLEjhESqan+dt8jGLgX
subject: creepsky
package: creepMiner
version: stable
publish: true
artifact: /.*\.zip/
override: true
on:
branch: master
- provider: BinTray
username: creepsky
repo: creepMiner
api_key:
secure: KkWiYEwxZuF+y1XOTWasSx0MT5GRP4f4o8k4TzavQl2lqzLEjhESqan+dt8jGLgX
subject: creepsky
package: creepMiner-dev
version: development
publish: true
artifact: /.*\.zip/
override: true
on:
branch: development