-
Notifications
You must be signed in to change notification settings - Fork 298
/
appveyor.yml
40 lines (33 loc) · 1.45 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}'
configuration: Release
platform: x64
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
features: FEATURE_USE_CPU_ONLY
run_tests: 1
skip_commits:
files:
- '**/*.md'
- '**/.gitignore'
- go/
- training/
- AUTHORS
- COPYING
install:
- cmd: nuget restore msvc\VS2017 -PackagesDirectory pkgs
cache: pkgs -> appveyor.yml
build_script:
- cmd: >-
set PKG_FOLDER="%cd%\pkgs"
git submodule update --init --recursive
mkdir build
cd build
set BLAS_HOME="..\pkgs\OpenBLAS.0.2.14.1\lib\native"
for /F %%f in ("%features%") do set DEFINES=%DEFINES% -D%%f=1
cmake -G "Visual Studio 15 2017 Win64" %DEFINES% -DCMAKE_PREFIX_PATH="%QTDIR%/lib/cmake/" -DBOOST_ROOT="C:/Libraries/boost_1_65_1" -DBOOST_LIBRARYDIR="C:/Libraries/boost_1_65_1/lib64-msvc-14.1" -DBoost_USE_STATIC_LIBS=ON -DZLIB_ROOT="%PKG_FOLDER%/zlib-msvc14-x64.1.2.11.7795/build/native" -DZLIB_LIBRARY="%PKG_FOLDER%/zlib-msvc14-x64.1.2.11.7795/build/native/zlib-msvc14-x64.targets" -DOpenCL_LIBRARY="%PKG_FOLDER%/opencl-nug.0.777.12/build/native/opencl-nug.targets" -DOpenCL_INCLUDE_DIR="%PKG_FOLDER%/opencl-nug.0.777.12/build/native/include" -DBLAS_LIBRARIES="%PKG_FOLDER%/OpenBLAS.0.2.14.1/build/native/openblas.targets" -Dgtest_force_shared_crt=ON ..
cmake --build . --config Release -- /maxcpucount:1
artifacts:
- path: build/Release/lczero.exe
name: LCZero