-
Notifications
You must be signed in to change notification settings - Fork 46
/
.appveyor.yml
88 lines (78 loc) · 2.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '{branch}-{build}'
shallow_clone: true
environment:
matrix:
- arch: x64
CMAKE_GENERATOR: Visual Studio 17 2022
CMAKE_CONFIG: Release
CMAKE_ARGS: -DCMAKE_CXX_STANDARD=20 -DPython_EXECUTABLE="C:\\Python311-x64\\python.exe" -DBUILD_SHARED_LIBS=ON -DFETCH_ZLIB_NG=ON
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
VCPKG_BUILD_TYPE: "release"
PY_PYTHON: 3.11
- arch: x64
CMAKE_GENERATOR: Visual Studio 16 2019
CMAKE_CONFIG: RelWithDebInfo
CMAKE_ARGS: -DCMAKE_CXX_STANDARD=17 -DPython_EXECUTABLE="C:\\Python310-x64\\python.exe" -DBUILD_SHARED_LIBS=OFF -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
VCPKG_BUILD_TYPE: "release"
PY_PYTHON: 3.10
- arch: x64
CMAKE_GENERATOR: MSYS Makefiles
COMPILER: MinGW64-gcc-8.1.0
CMAKE_CONFIG: Release
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
for:
-
matrix:
except:
- CMAKE_GENERATOR: MSYS Makefiles
install:
- if "%PY_PYTHON%"=="3.11" vcpkg install zlib-ng:x64-windows-static
- if "%PY_PYTHON%"=="3.10" vcpkg install zlib:x64-windows-static
- if "%PY_PYTHON%"=="3.10" py -m pip install typing_extensions
build_script:
- path
- cmake --version
- git clone --depth=1 --recursive https://github.com/wjakob/nanobind.git
- cmake -G "%CMAKE_GENERATOR%" -DUSE_PYTHON=1 %CMAKE_ARGS% .
- cmake --build . --config %CMAKE_CONFIG%
- cmake --build . --config %CMAKE_CONFIG% --target check
- cmake --install . --config %CMAKE_CONFIG%
- dir
- dir "%CMAKE_CONFIG%"
test_script:
- py -c "import sys; print(sys.version+'\n'+sys.executable)"
- ctest -C "%CMAKE_CONFIG%" --output-on-failure
- py -m pip install numpy pandas
- set PYTHONPATH=.
- py -m unittest discover -v -s tests/
- cd docs
- set PYTHONPATH=..
- py -m pip install --no-warn-script-location sphinx
- py -m sphinx -M doctest . _build -n -E
artifacts:
- path: '\$(CMAKE_CONFIG)\gemmi.exe'
- path: '\$(CMAKE_CONFIG)\gemmi_cpp.dll'
- path: '\$(CMAKE_CONFIG)\py\gemmi'
cache:
- c:\tools\vcpkg\installed\
-
matrix:
only:
- CMAKE_GENERATOR: MSYS Makefiles
build_script:
- set "PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\msys64\usr\bin;%PATH%"
- path
- dir C:\mingw-w64\
- cmake --version
- cmake -G "%CMAKE_GENERATOR%" -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=OFF .
- cmake --build . --config %CMAKE_CONFIG%
- cmake --build . --config %CMAKE_CONFIG% --target check
- cmake --install . --config %CMAKE_CONFIG%
- strip gemmi.exe
- dir gemmi.exe
test_script:
- ctest -C "%CMAKE_CONFIG%" --output-on-failure
- py tests/test_prog.py -v
artifacts:
- path: gemmi.exe