-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
175 lines (158 loc) · 6.55 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
version: 1.0.{build}
environment:
BOOST_VERSION: "1.86.0"
BOOST_VERSION_UNDERSCORED: "1_86_0"
matrix:
# Python 3.9
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ADDR_MODEL: 32
ARCH: v142_x86
MSVCVERSION: 14.2
PYTHONPATH: c:\Python39\
PY_VER: 39
BOOST_CFG: >-
using python : 3.9 : c:/python39/python.exe : c:/python39/include : c:/python39/libs ;
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ADDR_MODEL: 64
ARCH: v142_x64
MSVCVERSION: 14.2
PYTHONPATH: c:\Python39-x64\
PY_VER: 39
BOOST_CFG: >-
using python : 3.9 : c:/python39-x64/python.exe : c:/python39-x64/include : c:/python39-x64/libs ;
# Python 3.10
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ADDR_MODEL: 32
ARCH: v142_x86
MSVCVERSION: 14.2
PYTHONPATH: c:\Python310\
PY_VER: 310
BOOST_CFG: >-
using python : 3.10 : c:/python310/python.exe : c:/python310/include : c:/python310/libs ;
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ADDR_MODEL: 64
ARCH: v142_x64
MSVCVERSION: 14.2
PYTHONPATH: c:\Python310-x64\
PY_VER: 310
BOOST_CFG: >-
using python : 3.10 : c:/python310-x64/python.exe : c:/python310-x64/include : c:/python310-x64/libs ;
# Python 3.11
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ADDR_MODEL: 32
ARCH: v142_x86
MSVCVERSION: 14.2
PYTHONPATH: c:\Python311\
PY_VER: 311
BOOST_CFG: >-
using python : 3.11 : c:/python311/python.exe : c:/python311/include : c:/python311/libs ;
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ADDR_MODEL: 64
ARCH: v142_x64
MSVCVERSION: 14.2
PYTHONPATH: c:\Python311-x64\
PY_VER: 311
BOOST_CFG: >-
using python : 3.11 : c:/python311-x64/python.exe : c:/python311-x64/include : c:/python311-x64/libs ;
# Python 3.12
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ADDR_MODEL: 32
ARCH: v142_x86
MSVCVERSION: 14.2
PYTHON_DOWNLOAD_URL: https://www.python.org/ftp/python/3.12.0/python-3.12.0.exe
PYTHONPATH: c:\Python312\
PY_VER: 312
BOOST_CFG: >-
using python : 3.12 : c:/python312/python.exe : c:/python312/include : c:/python312/libs ;
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ADDR_MODEL: 64
ARCH: v142_x64
MSVCVERSION: 14.2
PYTHON_DOWNLOAD_URL: https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe
PYTHONPATH: c:\Python312-x64\
PY_VER: 312
BOOST_CFG: >-
using python : 3.12 : c:/python312-x64/python.exe : c:/python312-x64/include : c:/python312-x64/libs ;
# Python 3.13
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ADDR_MODEL: 32
ARCH: v142_x86
MSVCVERSION: 14.2
PYTHON_DOWNLOAD_URL: https://www.python.org/ftp/python/3.13.0/python-3.13.0.exe
PYTHONPATH: c:\Python313\
PY_VER: 313
BOOST_CFG: >-
using python : 3.13 : c:/python313/python.exe : c:/python313/include : c:/python313/libs ;
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ADDR_MODEL: 64
ARCH: v142_x64
MSVCVERSION: 14.2
PYTHON_DOWNLOAD_URL: https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe
PYTHONPATH: c:\Python313-x64\
PY_VER: 313
BOOST_CFG: >-
using python : 3.13 : c:/python313-x64/python.exe : c:/python313-x64/include : c:/python313-x64/libs ;
init:
#RDP from start
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Boost
- cmd: cd "C:\projects\"
- cmd: md boost_build
- appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/%BOOST_VERSION%/source/boost_%BOOST_VERSION_UNDERSCORED%.zip
- cmd: 7z -y x boost_%BOOST_VERSION_UNDERSCORED%.zip -oC:\projects\boost_build\
# adding a boost-config.jam file
- cmd: echo %BOOST_CFG% >> %HOMEDRIVE%%HOMEPATH%\user-config.jam
- cmd: type %HOMEDRIVE%%HOMEPATH%\user-config.jam
- cmd: cd "C:\projects\boost-ci"
install:
# Setting Visual Compiler
- cmd: echo "Platform='%Platform%'"
- cmd: set PYTHONPATH=%PYTHONPATH%
# install Python, if necessary
- ps: |
if (!(Test-Path -Path $env:PYTHONPATH) -and $env:PYTHON_DOWNLOAD_URL) {
Write-Host "Installing Python $($env:PY_VER)" -ForegroundColor Cyan
Write-Host "Downloading $($env:PYTHON_DOWNLOAD_URL)..."
$exePath = "$env:TEMP\python-installer.exe"
(New-Object Net.WebClient).DownloadFile($env:PYTHON_DOWNLOAD_URL, $exePath)
Write-Host "Installing..."
cmd /c start /wait $exePath /quiet TargetDir="$env:PYTHONPATH" Shortcuts=0 Include_launcher=1 InstallLauncherAllUsers=1 Include_debug=1
Remove-Item $exePath
Write-Host "Installed Python $($env:PY_VER) to $($env:PYTHONPATH)" -ForegroundColor Green
}
# apply patches to Boost
- cmd: patch -uN C:/projects/boost_build/boost_%BOOST_VERSION_UNDERSCORED%/libs/python/src/numpy/dtype.cpp C:/projects/boost-ci/patches/support-numpy-2.0.0b1.patch
- cmd: patch -uN C:/projects/boost_build/boost_%BOOST_VERSION_UNDERSCORED%/libs/python/src/numpy/dtype.cpp C:/projects/boost-ci/patches/0003-Support-numpy-2.0.patch
# building bootstrap
- cmd: cd C:/projects/boost_build/boost_%BOOST_VERSION_UNDERSCORED%
- cmd: C:/projects/boost_build/boost_%BOOST_VERSION_UNDERSCORED%/bootstrap.bat
clone_folder: C:\projects\boost-ci
build:
parallel: true
verbosity: minimal
build_script:
- cmd: cd C:/projects/boost_build/boost_%BOOST_VERSION_UNDERSCORED%
# static libraries
- cmd: b2 -j4 --with-python variant=release toolset=msvc-%MSVCVERSION% address-model=%ADDR_MODEL% threading=multi link=static runtime-link=static install --exec-prefix=C:\Boost
# shared libraries
- cmd: b2 -j4 --with-python variant=release toolset=msvc-%MSVCVERSION% address-model=%ADDR_MODEL% threading=multi link=shared runtime-link=shared install --exec-prefix=C:\Boost
after_build:
- cmd: cd C:/boost
- cmd: dir
- 7z a boost-python-%BOOST_VERSION%_%ARCH%_py%PY_VER%.zip C:/boost
- move boost-python-%BOOST_VERSION%_%ARCH%_py%PY_VER%.zip c:/projects/boost-ci/
on_finish:
#RDP for finish
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
artifacts:
- path: ./*.zip