Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 6c109d0

Browse files
committedOct 1, 2018
AppVeyor: build both CUDA 9.0 and 10.0 binaries.
For CUDA 10, use the default MSVC 2017 compiler, instead of the 2015 compiler.
1 parent 4aa03de commit 6c109d0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed
 

‎appveyor.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,31 @@ branches:
99
clone_depth: 100
1010
os: "Visual Studio 2017"
1111
environment:
12+
matrix:
13+
- CUDA_VER: "9.0"
14+
- CUDA_VER: "10.0"
1215
HUNTER_CACHE_TOKEN:
1316
secure: VnpF1MH5MEFvUI5MiMMMFlmbDdst+bfom5ZFVgalYPp/SYDhbejjXJm9Dla/IgpC
1417

1518
# Download CUDA Windows installer (local) and extract /compiler/* to /CUDA/vX.0/ zip archive.
1619
install: |
1720
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
2125
pip install requests gitpython
2226
nvcc -V
2327
2428
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%
2633
- cmake --build build --config Release --target package
2734
- ps: |
2835
. 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
3037
3138
artifacts:
3239
- path: build/ethminer-*.zip

0 commit comments

Comments
 (0)
This repository has been archived.