-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (42 loc) · 1.28 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
version: "{build}"
image: Visual Studio 2017
branches:
only:
- master
- appveyor
- hunter
configuration:
- Release
environment:
ARCH: amd64
TOOLCHAIN: cxx11
HUNTER_CACHE_TOKEN:
secure: agYfiC1OKfHnGOJQolOBorIRovVTgDW3TJ8JOb2+0XZiAnNwbrtPegxaaFM8/VWu
matrix:
- VS: 2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VS: 2019
TOOLCHAIN: cxx17
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VS: 2017
PYTHON: true
- VS: 2017
CONFIGURATION: Debug
- VS: 2017
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\%VS%\Community\Common7\Tools\vsdevcmd" -arch=%ARCH%
- cmake -S . -B build -G Ninja .. -Wno-dev -DTOOLCHAIN=%TOOLCHAIN% -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