-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
40 lines (30 loc) · 1.98 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
version: '{build}'
image: Visual Studio 2017
environment:
BOOST_ROOT: C:\Libraries\boost_1_69_0
OPENSSL_ROOT_DIR: c:\beam-libs\openssl
BUILD_SERVER:
secure: l9RqB2YbSnNIKZqTwnd67BHAXvbjmpj9zcf+YQPi9zfzsVeSysaoLD7gy4gSMjWurk2JVHjRpviw4bBxUbu2sA==
BUILD_CONFIG: Release
matrix:
- arch: Win64
before_build:
- cmd: appveyor DownloadFile http://builds.beam-mw.com/files/libs/boost_1_69_0.7z
- cmd: 7z x boost_1_69_0.7z -oC:\Libraries
- cmd: git clone --depth=1 https://github.com/BeamMW/libs.git c:/beam-libs
- 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 visual_studio_integration_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: cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=%BUILD_CONFIG%
build_script:
- cmake --build . --parallel --config %BUILD_CONFIG%
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%
7z a c:/projects/beam-cuda-miner/%BUILD_CONFIG%/cuda-miner-gminer-%BEAM_VERSION%.zip c:/projects/beam-cuda-miner/%BUILD_CONFIG%/beam-cuda-miner.exe
set BUILDS_SERVER_PATH=%BUILD_SERVER%/files/%APPVEYOR_REPO_BRANCH%/%DATE%/Release/win
curl --retry 3 --ftp-create-dirs -T "c:/projects/beam-cuda-miner/%BUILD_CONFIG%/cuda-miner-gminer-%BEAM_VERSION%.zip" %BUILDS_SERVER_PATH%/