forked from Tulip-Dev/tulip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
140 lines (123 loc) · 4.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
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
# Talipot continuous integration on Windows and MacOS platform through AppVeyor.
# define build jobs
environment:
matrix:
# # Windows MSYS2 GCC core build
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# MSYS2_ARCH: x86_64
# MSYSTEM: MINGW64
# BUILD_WHEELS: "false"
# # Windows MSYS2 GCC complete build
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# MSYS2_ARCH: x86_64
# MSYSTEM: MINGW64
# BUILD_WHEELS: "false"
# # MacOS core build
# - APPVEYOR_BUILD_WORKER_IMAGE: macos
# BUILD_WHEELS: "false"
# # MacOS complete build
# - APPVEYOR_BUILD_WORKER_IMAGE: macos
# BUILD_WHEELS: "false"
# Windows MSVC core build
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
CMAKE_VS_GENERATOR: Visual Studio 17 2022
MSVC_ARCH: x64
QT_DIR: C:/Qt/6.5/msvc2019_64
PYTHON_HOME: C:\Python311-x64
# Windows MSVC complete build
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
CMAKE_VS_GENERATOR: Visual Studio 17 2022
MSVC_ARCH: x64
QT_DIR: C:/Qt/6.5/msvc2019_64
PYTHON_HOME: C:\Python311-x64
# # Windows MSYS2 GCC Python wheels build
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# MSYS2_ARCH: x86_64
# MSYSTEM: MINGW64
# BUILD_WHEELS: "true"
# TWINE_REPOSITORY: https://test.pypi.org/legacy/
# TWINE_USERNAME: __token__
# TWINE_PASSWORD:
# secure: 69gKUYg72j5gedVBM/dWr+0D2rTf/IxMcQ0mBVxat0e9P4Mkv
# ubhOsDIHKSOtnUc9WN3ns1Z8KLbESG/wvmVs4kaWQzLDcopID
# 1obaaNl2bt9E2GliNcbAgEiHEHp7dj+nVkGw0ur32Yi4F2OJN
# dg57bgn2mRZWfK+3qBUPIhzaH5PqJ7FW4qKADpiANyHs+8EES
# sxXIe/QPXpqPeAjbwdrcJ7QmL2vIllXthlGgryWyg62ZE6kIy
# Dy+jye9nWLq
# # MacOS Python wheels build
# - APPVEYOR_BUILD_WORKER_IMAGE: macos
# BUILD_WHEELS: "true"
# TWINE_REPOSITORY: https://test.pypi.org/legacy/
# TWINE_USERNAME: __token__
# TWINE_PASSWORD:
# secure: 69gKUYg72j5gedVBM/dWr+0D2rTf/IxMcQ0mBVxat0e9P4Mkv
# ubhOsDIHKSOtnUc9WN3ns1Z8KLbESG/wvmVs4kaWQzLDcopID
# 1obaaNl2bt9E2GliNcbAgEiHEHp7dj+nVkGw0ur32Yi4F2OJN
# dg57bgn2mRZWfK+3qBUPIhzaH5PqJ7FW4qKADpiANyHs+8EES
# sxXIe/QPXpqPeAjbwdrcJ7QmL2vIllXthlGgryWyg62ZE6kIy
# Dy+jye9nWLq
# build jobs configuration according to OS
for:
- matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
cache:
- C:\Users\appveyor\AppData\Local\ccache
- C:\Users\appveyor\clcache
- C:\Tools\vcpkg\installed\
init:
- ps: $env:APPVEYOR_SAVE_CACHE_ON_ERROR = "true"
# build script that simply call the right batch script depending on the compiler used
build_script:
- if defined MSYS2_ARCH (
"%APPVEYOR_BUILD_FOLDER%\appveyor\appveyor_msys2.bat" %BUILD_WHEELS%
) else (
"%APPVEYOR_BUILD_FOLDER%\appveyor\appveyor_msvc.bat"
)
# get the Talipot version for deployment
after_build:
- ps: |
$env:PATH="C:/msys64/usr/bin;$env:PATH"
$env:TALIPOT_VERSION=(bash -c "bash build/talipot-config --version | sed 's/_/./g'")
echo TALIPOT_VERSION=$env:TALIPOT_VERSION
# set generated installer as artifacts to deploy
artifacts:
- path: build\*.exe
name: talipot_installers
# deploy installer on GH release when pushing tag
deploy:
release: dev-latest
description: Talipot development build
provider: GitHub
auth_token:
secure: 8W4WpuPR5ygd+SUhKnwBbj1WfvZUzV2pBZnee4Q6aKk2J1eNpSVv1wEjzcfOWP9/
prerelease: true
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true
- matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: macos
cache:
- /Users/appveyor/Library/Caches/ccache
- /Users/appveyor/.macports-ci-ccache
init:
- export APPVEYOR_SAVE_CACHE_ON_ERROR="true"
build_script:
- |
if [[ "$BUILD_WHEELS" == "false" ]]
then
bash -l $APPVEYOR_BUILD_FOLDER/appveyor/appveyor_macos.sh
else
bash -l $APPVEYOR_BUILD_FOLDER/bundlers/mac/talipot_python_wheels_macos_build.sh
fi
# get the Talipot version for deployment
after_build:
- |
export TALIPOT_VERSION=$(bash build/talipot-config --version)
echo TALIPOT_VERSION=$TALIPOT_VERSION
# set generated bundle as artifacts to deploy
artifacts:
- path: build\*.dmg
name: talipot_installers