-
Notifications
You must be signed in to change notification settings - Fork 58
456 lines (439 loc) · 19.2 KB
/
Copy pathbuild.yml
File metadata and controls
456 lines (439 loc) · 19.2 KB
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
name: Continuous_Integration_Testing
on: [push, pull_request]
jobs:
build-macos-native:
runs-on: macOS-latest
env:
CCACHE_COMPRESS: 1
CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-macos-build-${{ github.sha }}
restore-keys: ccache-macos-build-
- name: install dependencies
run: brew install boost hidapi zmq libpgm ldns expat libunwind-headers protobuf ccache
- name: build sumokoin
run: |
ccache --max-size=150M
make -j 3
macOS-cross-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install cmake build-essential autoconf automake gperf libtool imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python-pip
- name: install setuptools
run: pip install setuptools
- name: get SDK
run: wget https://sumokoin.org/downloads/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz
- name: create SDKs dir, move and extract SDK
run: |
sudo mkdir /home/runner/work/sumokoin/sumokoin/contrib/depends/SDKs
sudo mv Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz /home/runner/work/sumokoin/sumokoin/contrib/depends/SDKs
cd /home/runner/work/sumokoin/sumokoin/contrib/depends/SDKs
sudo tar -xf Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz
cd /home/runner/work/sumokoin/sumokoin
- name: build sumokoin
run: make depends target=x86_64-apple-darwin14 -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: Macos-release-binaries
path: build/**/bin/
build-windows-native-msys2:
runs-on: windows-latest
env:
CCACHE_COMPRESS: 1
CCACHE_TEMPDIR: C:\Users\runneradmin\.ccache-temp
CCACHE_DIR: C:\Users\runneradmin\.ccache
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: C:\Users\runneradmin\.ccache
key: ccache-windows-build-${{ github.sha }}
restore-keys: ccache-windows-build-
- uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-ccache mingw-w64-x86_64-libunwind mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-libusb git
- name: build sumokoin
run: |
ccache --max-size=150M
make release-static-win64 -j 3
Windows32-cross-on-focal-fossa:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install make automake cmake curl libtool binutils-gold g++-mingw-w64-i686 pkg-config python3 gperf
- name: cross compile sumokoin bins for windows-32bit
run: make depends target=i686-w64-mingw32 -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: Windows32-release-binaries
path: build/**/bin/
Windows64-cross-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install python3 g++-mingw-w64-x86-64 wine1.6 bc gperf autoconf automake libtool build-essential cmake graphviz doxygen libunwind8-dev pkg-config libssl-dev libnorm-dev libusb-1.0-0-dev libpgm-dev ccache
- name: cross compile sumokoin windows binaries
run: make depends target=x86_64-w64-mingw32 -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: Windows64-release-binaries
path: build/**/bin/
build-ubuntu-bionic-native:
runs-on: ubuntu-18.04
env:
CCACHE_COMPRESS: 1
CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-ubuntu-bionic-build-${{ github.sha }}
restore-keys: ccache-ubuntu-bionic-build-
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev libevent-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev ccache
- name: build sumokoin
run: |
ccache --max-size=150M
make -j 3
build-bionic-debug-native:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-ubuntu-debug-build-${{ github.sha }}
restore-keys: ccache-ubuntu-debug-build-
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev ccache
- name: build sumokoin
run: |
ccache --max-size=150M
make -j 3
build-ubuntu-focal-fossa-native:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-ubuntu-focal-build-${{ github.sha }}
restore-keys: ccache-ubuntu-focal-build-
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev ccache
- name: build sumokoin
run: |
ccache --max-size=150M
make -j 3
build-ubuntu-focal-fossa-native-with-clang-10:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-ubuntu-focal-build-${{ github.sha }}
restore-keys: ccache-ubuntu-focal-build-
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential clang-10 cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev ccache
- name: build sumokoin
run: |
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
ccache --max-size=150M
make -j 3
build-ubuntu-bionic-static-native:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-ubuntu-bionic-static-build-${{ github.sha }}
restore-keys: ccache-ubuntu-bionic-static-build-
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential cmake miniupnpc libunbound-dev libevent-dev graphviz doxygen pkg-config libssl-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libudev-dev ccache libtool autoconf automake python libtinfo5 ccache
- name: build boost 1_74
run: |
wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2
tar -xvf boost_1_74_0.tar.bz2
rm -f /usr/boost_1_74_0.tar.bz2
cd boost_1_74_0
sudo ./bootstrap.sh
sudo ./b2 install -j 3
cd ..
- name: build zmq
run: |
git clone https://github.com/zeromq/libzmq.git
cd libzmq
sudo ./autogen.sh
sudo ./configure
sudo make -j 3
sudo make install
sudo ldconfig
cd ..
- name: build libunwind
run: |
git clone https://github.com/libunwind/libunwind
cd libunwind
sudo autoreconf -i
sudo ./configure
sudo make -j 3
sudo make install
cd ..
- name: build sumokoin
run: |
ccache --max-size=150M
make release-static -j 3
FreeBSD-cross-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install autoconf automake libtool gperf cmake clang-8
- name: cross compile sumokoin bins for FreeBSD
run: make depends target=x86_64-unknown-freebsd -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: FreeBSD-release-binaries
path: build/**/bin/
cross-build-linux-x64-binaries-on-xenial:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
- name: install sumokoin dependencies
run: |
sudo apt -y install dpkg-dev cmake g++-7 gcc pkg-config libtool autoconf automake gperf
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --config gcc
- name: cross compile sumokoin bins for linux x64
run: make depends target=x86_64-linux-gnu -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: linux64-release-binaries
path: build/**/bin/
cross-build-armv7-binaries-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install dpkg-dev cmake pkg-config libtool autoconf automake gperf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
- name: cross compile sumokoin bins for armv7
run: make depends target=arm-linux-gnueabihf -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: armv7-release-binaries
path: build/**/bin/
cross-build-armv8-binaries-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install dpkg-dev cmake pkg-config libtool autoconf automake gperf g++-aarch64-linux-gnu
- name: cross compile sumokoin bins for armv8
run: make depends target=aarch64-linux-gnu -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: armv8-release-binaries
path: build/**/bin/
cross-build-RISCV64-binaries-on-bionic:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install dpkg-dev cmake pkg-config libtool autoconf automake gperf g++-riscv64-linux-gnu
- name: cross compile sumokoin bins for RISC V 64
run: make depends target=riscv64-linux-gnu -j 3
- name: upload binaries
uses: actions/upload-artifact@v2
with:
name: RISCV64-release-binaries
path: build/**/bin/
test-ubuntu:
needs: build-ubuntu-bionic-native
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: remove bundled zmq & libnorm & cmake & build-essential
run: sudo apt-get remove --purge --auto-remove libzmq5 libnorm1 libboost* cmake* build-essential*
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt
run: sudo apt update
- name: install sumokoin dependencies
run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev libevent-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev
- name: install requests
run: pip install requests
- name: tests
env:
CTEST_OUTPUT_ON_FAILURE: ON
run: make release-test -j 3