-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (56 loc) · 1.86 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
version: "{build}"
branches:
only:
- master
- /v\d+\..+/
- /release.*/
- appveyor
clone_depth: 1
os: Visual Studio 2015
configuration:
- Release
- RelWithDebInfo
environment:
GITHUB_USER_PASSWORD:
secure: VnpF1MH5MEFvUI5MiMMMFlmbDdst+bfom5ZFVgalYPp/SYDhbejjXJm9Dla/IgpC
install: | # Download CUDA Windows installer (local) and extract /compiler/* to /CUDA/vX.0/ zip archive.
git submodule update --init --recursive
appveyor DownloadFile https://github.com/ethereum/cpp-dependencies/releases/download/cache/CUDA-v9.0-WindowsServer2012.zip
7z x CUDA-v9.0-WindowsServer2012.zip -oC:/
set PATH=%PATH%;C:/CUDA/v9.0/bin
nvcc -V
set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
pip install requests
before_build:
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON
build_script:
- cmake --build build --config %CONFIGURATION%
after_build:
ps: |
cmake --build build --config $env:configuration --target package
if ($env:configuration -ne "Release") {
Get-Item build/ethminer-*-Windows.* | Rename-Item -NewName { $_.name -Replace 'ethminer','ethminer-dbg' }
}
if (-not $env:appveyor_pull_request_number) {
cmake --build build --target hunter_upload_cache
}
artifacts:
- path: build/ethminer-*.zip
name: ethminer
before_deploy:
# Read variables dumped by CMake configuration.
- ps: . build/variables.ps1
deploy:
# Create GitHub release, also set the release name and description.
provider: GitHub
tag: $(appveyor_repo_tag_name)
release: ethminer $(ethminer_version)
description: ''
force_update: true # Force update in case Travis CI created the release before.
prerelease: $(ethminer_version_is_prerelease)
draft: false
artifact: ethminer
auth_token:
secure: uDRcvbW+9GIyKlZ9guJfWOQ6jg0An6eULg6mEkYgdKn/GVNpYSKvO5oHxP0U8a+e
on:
appveyor_repo_tag: true