Skip to content

Commit 67e0375

Browse files
committed
ci: Use Ninja generator on AppVeyor
1 parent 8bcad4c commit 67e0375

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

appveyor.yml

+20-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version: "{build}"
2+
image: Visual Studio 2017
3+
24
branches:
35
only:
46
- master
@@ -10,28 +12,29 @@ environment:
1012
HUNTER_CACHE_TOKEN:
1113
secure: agYfiC1OKfHnGOJQolOBorIRovVTgDW3TJ8JOb2+0XZiAnNwbrtPegxaaFM8/VWu
1214
matrix:
13-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
14-
GENERATOR: "Visual Studio 15 2017 Win64"
15+
- ARCH: amd64
1516
CONFIGURATION: Debug
16-
17-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
18-
GENERATOR: "Visual Studio 15 2017"
19-
20-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
21-
GENERATOR: "Visual Studio 14 2015 Win64"
17+
- ARCH: x86
18+
- ARCH: amd64
2219

2320
install:
2421
# Python 3
25-
- set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
22+
- set PATH_ORIG=%PATH%
23+
- set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH_ORIG%
2624
- pip install requests
2725

28-
before_build: |
29-
if not exist build mkdir build
30-
cd build
31-
cmake -G "%GENERATOR%" .. -DHUNTER_CONFIGURATION_TYPES=%CONFIGURATION%
26+
before_build:
27+
- call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=%ARCH%
28+
- if not exist build mkdir build
29+
- cd build
30+
- cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=../dist -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DHUNTER_CONFIGURATION_TYPES=%CONFIGURATION%
31+
32+
build_script:
33+
- cmake --build . --target install
3234

33-
build_script: |
34-
cmake --build . --config %CONFIGURATION%
35+
test_script:
36+
- if %CONFIGURATION%==Release C:\projects\ethash\build\test\ethash-test.exe
3537

36-
test_script: |
37-
if %CONFIGURATION%==Release C:\projects\ethash\build\test\%CONFIGURATION%\ethash-test.exe
38+
artifacts:
39+
- path: dist
40+
name: dist

0 commit comments

Comments
 (0)