This repository was archived by the owner on Apr 24, 2022. It is now read-only.
File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -9,24 +9,31 @@ branches:
9
9
clone_depth : 100
10
10
os : " Visual Studio 2017"
11
11
environment :
12
+ matrix :
13
+ - CUDA_VER : " 9.0"
14
+ - CUDA_VER : " 10.0"
12
15
HUNTER_CACHE_TOKEN :
13
16
secure : VnpF1MH5MEFvUI5MiMMMFlmbDdst+bfom5ZFVgalYPp/SYDhbejjXJm9Dla/IgpC
14
17
15
18
# Download CUDA Windows installer (local) and extract /compiler/* to /CUDA/vX.0/ zip archive.
16
19
install : |
17
20
git submodule update --init --recursive
18
- appveyor DownloadFile https://github.com/ethereum/cpp-dependencies/releases/download/cache/CUDA-v9.0-WindowsServer2012.zip
19
- 7z x CUDA-v9.0-WindowsServer2012.zip -oC:\
20
- set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%;C:\CUDA\v9.0\bin
21
+ set CUDA_ARCHIVE=CUDA-v%CUDA_VER%-WindowsServer2012.7z
22
+ appveyor DownloadFile https://github.com/ethereum-mining/ethminer/releases/download/build-deps/%CUDA_ARCHIVE%
23
+ 7z x %CUDA_ARCHIVE% -oC:\
24
+ set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%;C:\CUDA\v%CUDA_VER%\bin
21
25
pip install requests gitpython
22
26
nvcc -V
23
27
24
28
build_script :
25
- - cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild -T v140 -DETHASHCUDA=ON -DAPICORE=ON -DHUNTER_JOBS_NUMBER=%NUMBER_OF_PROCESSORS% -DHUNTER_CONFIGURATION_TYPES=Release
29
+ - call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
30
+ - set CMAKE_ARGS=-G "Visual Studio 15 2017 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON -DHUNTER_JOBS_NUMBER=%NUMBER_OF_PROCESSORS%
31
+ - if "%CUDA_VER%" == "9.0" set CMAKE_ARGS=%CMAKE_ARGS% -T v140
32
+ - cmake %CMAKE_ARGS%
26
33
- cmake --build build --config Release --target package
27
34
- ps : |
28
35
. build/ethminer/buildinfo.ps1
29
- mv build/ethminer.zip build/$env:project_name-$env:project_version-$env:system_name-$env:system_processor.zip
36
+ mv build/ethminer.zip build/$env:project_name-$env:project_version-cuda$env:CUDA_VER- $env:system_name-$env:system_processor.zip
30
37
31
38
artifacts :
32
39
- path : build/ethminer-*.zip
You can’t perform that action at this time.
0 commit comments