forked from BeamMW/opencl-miner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
78 lines (58 loc) · 3.08 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
version: '{build}'
image: Visual Studio 2017
environment:
BOOST_ROOT: C:\Libraries\boost_1_67_0
#OPENSSL_ROOT_DIR: c:\beam-libs\openssl
#QT5_ROOT_DIR: c:\beam-libs\qt5-static-win
#QML_IMPORT_PATH: c:\beam-libs\qt5-static-win\qml
BUILD_SERVER:
secure: l9RqB2YbSnNIKZqTwnd67BHAXvbjmpj9zcf+YQPi9zfzsVeSysaoLD7gy4gSMjWurk2JVHjRpviw4bBxUbu2sA==
BUILD_CONFIG: RelWithDebInfo
matrix:
- arch: Win64
before_build:
- cmd: appveyor DownloadFile https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_411.31_win10 -FileName cuda.exe
- cmd: cuda.exe -s nvcc_10.0 nvprune_10.0 cublas_dev_10.0 cufft_dev_10.0 curand_dev_10.0 cusolver_dev_10.0 cusparse_dev_10.0 nvgraph_dev_10.0 npp_dev_10.0 nvrtc_dev_10.0 nvml_dev_10.0
- cmd: set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.0\libnvvp;%PATH%
#- cmd: git clone --depth=1 https://github.com/BeamMW/libs.git c:/beam-libs
#- cmd: git clone --depth=1 https://github.com/nesbox/qt5-static-win.git c:/beam-libs/qt5-static-win
- cmd: cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=%BUILD_CONFIG%
build_script:
- cmake --build . --parallel --config %BUILD_CONFIG%
after_build:
- ps: $env:DATE=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('yyyy.MM.dd')
- ps: $env:TIME=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('HH:mm:ss')
- cmd: >-
git rev-list HEAD --count > BEAM_VERSION_REVISION
set /p BEAM_VERSION_REVISION=<BEAM_VERSION_REVISION
set BEAM_VERSION=1.0.%BEAM_VERSION_REVISION%
7z a c:/projects/opencl-miner/%BUILD_CONFIG%/opencl-miner-%BEAM_VERSION%.zip c:/projects/opencl-miner/%BUILD_CONFIG%/beam-opencl-miner.exe
copy c:\projects\opencl-miner\%BUILD_CONFIG%\opencl-miner-%BEAM_VERSION%.zip c:\projects\opencl-miner\opencl-miner-%BEAM_VERSION%.zip
on_success:
- ps: $env:DATE=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('yyyy.MM.dd')
- ps: $env:TIME=[TimeZoneInfo]::ConvertTimeBySystemTimeZoneId([DateTime]::UtcNow, "Belarus Standard Time").ToString('HH:mm:ss')
- cmd: >-
git rev-list HEAD --count > BEAM_VERSION_REVISION
set /p BEAM_VERSION_REVISION=<BEAM_VERSION_REVISION
set BEAM_VERSION=1.0.%BEAM_VERSION_REVISION%
set BUILDS_SERVER_PATH=%BUILD_SERVER%/files/%APPVEYOR_REPO_BRANCH%/%DATE%/Release/win
curl --retry 3 --ftp-create-dirs -T "c:/projects/opencl-miner/%BUILD_CONFIG%/opencl-miner-%BEAM_VERSION%.zip" %BUILDS_SERVER_PATH%/
artifacts:
- path: opencl-miner-%BEAM_VERSION%.zip
name: OpenCLMiner
deploy:
provider: S3
access_key_id:
secure: J8+/d4TSbhxiaFlDQopFzKbfLPvUy1rMUJlAgnfbBNE=
secret_access_key:
secure: sqF9zdsuUm/k9QzY46s250MZJamHjKrwBCAPbinBA/iOJlgLsHC7lq1F5pTr/B+U
bucket: builds.beam.mw
region: us-west-2
unzip: false
set_public: true
folder: "%APPVEYOR_REPO_BRANCH%/%DATE%/Release/win"
artifact: OpenCLMiner
notifications:
- provider: Email
to: