forked from v6d-io/v6d
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
237 lines (219 loc) · 7.74 KB
/
.cirrus.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# only run for releases
only_if: $CIRRUS_TAG != ''
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
macosx_arm64_wheel_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
checkout_script:
- git submodule init
- git submodule update
install_deps_script:
- brew update
# go 1.22 doesn't work, see also: https://github.com/golang/go/issues/37602
- brew install coreutils [email protected] pyenv python
install_various_python_script:
- pyenv install 3.8.18
- pyenv install 3.9.18
- pyenv install 3.10.13
- pyenv install 3.11.8
- pyenv install 3.12.2
install_apache_arrow_script: |
echo "Installing apache-arrow ..."
mkdir -p /tmp/install
cd /tmp/install
curl -L https://github.com/apache/arrow/archive/refs/tags/apache-arrow-8.0.1.tar.gz --output apache-arrow-8.0.1.tar.gz
tar zxf apache-arrow-8.0.1.tar.gz
cd arrow-apache-arrow-8.0.1
mkdir -p build-dir
cd build-dir
cmake ../cpp \
-DARROW_COMPUTE=OFF \
-DARROW_WITH_UTF8PROC=OFF \
-DARROW_CSV=OFF \
-DARROW_CUDA=OFF \
-DARROW_DATASET=OFF \
-DARROW_FILESYSTEM=ON \
-DARROW_FLIGHT=OFF \
-DARROW_GANDIVA=OFF \
-DARROW_GANDIVA_JAVA=OFF \
-DARROW_HDFS=OFF \
-DARROW_HIVESERVER2=OFF \
-DARROW_JSON=OFF \
-DARROW_ORC=OFF \
-DARROW_PARQUET=OFF \
-DARROW_PLASMA=OFF \
-DARROW_PLASMA_JAVA_CLIENT=OFF \
-DARROW_PYTHON=OFF \
-DARROW_S3=OFF \
-DARROW_WITH_BZ2=OFF \
-DARROW_WITH_ZLIB=OFF \
-DARROW_WITH_LZ4=OFF \
-DARROW_WITH_SNAPPY=OFF \
-DARROW_WITH_ZSTD=OFF \
-DARROW_WITH_BROTLI=OFF \
-DARROW_IPC=ON \
-DARROW_BUILD_BENCHMARKS=OFF \
-DARROW_BUILD_EXAMPLES=OFF \
-DARROW_BUILD_INTEGRATION=OFF \
-DARROW_BUILD_UTILITIES=OFF \
-DARROW_BUILD_TESTS=OFF \
-DARROW_ENABLE_TIMING_TESTS=OFF \
-DARROW_FUZZING=OFF \
-DARROW_USE_ASAN=OFF \
-DARROW_USE_TSAN=OFF \
-DARROW_USE_UBSAN=OFF \
-DARROW_JEMALLOC=OFF \
-DARROW_BUILD_SHARED=OFF \
-DARROW_BUILD_STATIC=ON
sudo make install -j$(sysctl -n hw.ncpu)
cd /tmp
sudo rm -rf /tmp/install
install_boost_script: |
echo "Installing boost ..."
mkdir -p /tmp/install
cd /tmp/install
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz
tar zxf boost_1_75_0.tar.gz
cd boost_1_75_0
./bootstrap.sh
sudo ./b2 install -j`nproc` variant=release threading=multi \
--with-atomic \
--with-chrono \
--with-date_time \
--with-filesystem \
--with-random \
--with-regex \
--with-system \
--with-thread
cd /tmp
sudo rm -rf /tmp/install
install_gflags_script: |
echo "Installing gflags ..."
mkdir -p /tmp/install
cd /tmp/install
curl -L https://github.com/gflags/gflags/archive/v2.2.2.tar.gz --output gflags-v2.2.2.tar.gz
tar zxf gflags-v2.2.2.tar.gz
cd gflags-2.2.2
mkdir -p build-dir
cd build-dir
cmake .. -DBUILD_SHARED_LIBS=OFF
sudo make install -j$(sysctl -n hw.ncpu)
cd /tmp
sudo rm -rf /tmp/install
install_glog_script: |
echo "Installing glog ..."
mkdir -p /tmp/install
cd /tmp/install
curl -L https://github.com/google/glog/archive/v0.6.0.tar.gz --output glog-v0.6.0.tar.gz
tar zxf glog-v0.6.0.tar.gz
cd glog-0.6.0
mkdir -p build-dir
cd build-dir
cmake .. -DBUILD_SHARED_LIBS=OFF \
-DWITH_GFLAGS=OFF \
-DBUILD_TESTING=OFF
sudo make install -j$(sysctl -n hw.ncpu)
cd /tmp
sudo rm -rf /tmp/install
install_protobuf_grpc_script: |
echo "Installing protobuf & grpc ..."
mkdir -p /tmp/install
cd /tmp/install
wget -q https://github.com/unsafecoerce/git-submodules-tarball/releases/download/grpc%2Fgrpc-v1.36.x/grpc-grpc-1.36.x.tar.gz
tar zxf grpc-grpc-1.36.x.tar.gz
cd grpc-grpc-1.36.x
mkdir -p cmake-build
cd cmake-build
cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel \
-DBUILD_SHARED_LIBS=OFF \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DgRPC_BUILD_CSHARP_EXT=OFF \
-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF \
-DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl) \
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=ON
sudo make install -j$(sysctl -n hw.ncpu)
cd /tmp
sudo rm -rf /tmp/install
build_vineyardctl_script:
- |
export PATH=$(brew --prefix [email protected])/bin:$PATH
make -C k8s vineyardctl
vineyardctl_artifacts:
path: k8s/vineyardctl
build_vineyardd_script:
- mkdir -p build
- cd build
- |
pyenv global 3.11.8
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_STANDARD_REQUIRED=TRUE \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_VINEYARD_SERVER=ON \
-DBUILD_VINEYARD_CLIENT=OFF \
-DBUILD_VINEYARD_PYTHON_BINDINGS=OFF \
-DBUILD_VINEYARD_PYPI_PACKAGES=OFF \
-DBUILD_VINEYARD_BASIC=OFF \
-DBUILD_VINEYARD_GRAPH=OFF \
-DBUILD_VINEYARD_IO=OFF \
-DBUILD_VINEYARD_HOSSEINMOEIN_DATAFRAME=OFF \
-DBUILD_VINEYARD_TESTS=OFF \
-DBUILD_VINEYARD_TESTS_ALL=OFF \
-DBUILD_VINEYARD_PROFILING=OFF
make vineyardd -j$(sysctl -n hw.ncpu)
vineyardd_artifacts:
path: build/bin/vineyardd
build_vineyard_bdist_script:
- pyenv global 3.11.8
- cp k8s/vineyardctl ./python/vineyard/bdist/vineyardctl
- cp build/bin/vineyardd ./python/vineyard/bdist/vineyardd
- strip ./python/vineyard/bdist/vineyardctl
- strip ./python/vineyard/bdist/vineyardd
- python3 setup_bdist.py bdist_wheel --plat=macosx_11_0_arm64
build_vineyard_python_script:
- |
for py in 3.8.18 3.9.18 3.10.13 3.11.8 3.12.2; do
current_python=$(pyenv root)/versions/$py/bin/python
echo "Python is: $current_python, $($current_python --version)"
$current_python -m pip install delocate setuptools wheel
rm -rf build/lib* build/bdist.* python/vineyard/*.dylib python/vineyard/*.so
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_STANDARD_REQUIRED=TRUE \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_VINEYARD_SERVER=OFF \
-DBUILD_VINEYARD_CLIENT=ON \
-DBUILD_VINEYARD_PYTHON_BINDINGS=ON \
-DBUILD_VINEYARD_PYPI_PACKAGES=ON \
-DPYTHON_EXECUTABLE=$current_python \
-DBUILD_VINEYARD_BASIC=OFF \
-DBUILD_VINEYARD_GRAPH=OFF \
-DBUILD_VINEYARD_IO=OFF \
-DBUILD_VINEYARD_HOSSEINMOEIN_DATAFRAME=OFF \
-DBUILD_VINEYARD_TESTS=OFF \
-DBUILD_VINEYARD_TESTS_ALL=OFF \
-DBUILD_VINEYARD_PROFILING=OFF
make vineyard_client_python -j$(sysctl -n hw.ncpu)
cd ..
$current_python setup.py bdist_wheel
done
delocate_wheel_script:
- |
$(brew --prefix python)/bin/python3 -m pip install delocate wheel
for wheel in dist/*.whl; do
delocate-wheel -w fixed_wheels -v $wheel
done
ls -la ./fixed_wheels
macosx_arm64_wheel_artifacts:
path: fixed_wheels/*.whl