-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
40 lines (34 loc) · 1.05 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
branches:
only:
- master
- appveyor
- hunter
configuration:
- Release
environment:
HUNTER_CACHE_TOKEN:
secure: agYfiC1OKfHnGOJQolOBorIRovVTgDW3TJ8JOb2+0XZiAnNwbrtPegxaaFM8/VWu
matrix:
- ARCH: amd64
PYTHON: true
- ARCH: amd64
CONFIGURATION: Debug
- ARCH: x86
install:
# Set default Python version.
- set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
- pip install requests
before_build:
- call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=%ARCH%
- cmake -S . -B build -G Ninja .. -Wno-dev -DCMAKE_INSTALL_PREFIX=./dist -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DHUNTER_CONFIGURATION_TYPES=%CONFIGURATION%
build_script:
- cmake --build build --target install
- if defined PYTHON bash scripts/ci/python_build_wheels.sh
test_script:
- if %CONFIGURATION%==Release C:\projects\ethash\build\test\ethash-test.exe
- if defined PYTHON (set ETHASH_PYTHON_SKIP_BUILD=1 && python setup.py test)
artifacts:
- path: dist
name: dist