-
Notifications
You must be signed in to change notification settings - Fork 93
143 lines (125 loc) · 3.88 KB
/
build.yml
File metadata and controls
143 lines (125 loc) · 3.88 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
name: Build
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
permissions:
contents: write
env:
BASEPREFIX: /opt/blocknetdx/blocknet/depends
DEPENDS_CACHE: /proj/depends-cache
jobs:
build-linux:
runs-on: ubuntu-latest
container: blocknetdx/devbuilds:gitlab-linux
env:
HOST: x86_64-pc-linux-gnu
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- name: Setup depends
run: |
rm -rf $BASEPREFIX
mv $DEPENDS_CACHE $BASEPREFIX
- name: Build
run: |
chmod +x ./autogen.sh; sync
./autogen.sh
CONFIG_SITE="$BASEPREFIX/$HOST/share/config.site" ./configure CC=gcc-8 CXX=g++-8 CFLAGS="-g3 -O0" CXXFLAGS="-g3 -O0" --enable-debug --prefix=/
make clean
make -j $(nproc)
- name: Gather binaries
run: |
export DISTDIR=$PWD/dist
mkdir -p $DISTDIR
make install DESTDIR=$DISTDIR
- uses: actions/upload-artifact@v3
with:
name: artifacts-linux
path: |
dist/bin/blocknet-cli
dist/bin/blocknetd
dist/bin/blocknet-qt
dist/bin/blocknet-tx
dist/bin/blocknet-wallet
dist/bin/test_blocknet
dist/bin/test_blocknet-qt
build-win:
runs-on: ubuntu-latest
container: blocknetdx/devbuilds:gitlab-win
env:
HOST: x86_64-w64-mingw32
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- name: Setup depends
run: |
rm -rf $BASEPREFIX
mv $DEPENDS_CACHE $BASEPREFIX
- name: Build
run: |
chmod +x ./autogen.sh; sync
./autogen.sh
CONFIG_SITE="$BASEPREFIX/$HOST/share/config.site" ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking --enable-reduce-exports --disable-bench --disable-gui-tests
make clean
make -j $(nproc)
make deploy
- name: Gather binaries
run: |
export DISTDIR=$PWD/dist
mkdir -p $DISTDIR
make install DESTDIR=$DISTDIR
cp *win64-setup.exe $DISTDIR/bin/blocknet-win64-setup.exe
- uses: actions/upload-artifact@v3
with:
name: artifacts-win
path: |
dist/bin/blocknet-cli.exe
dist/bin/blocknetd.exe
dist/bin/blocknet-qt.exe
dist/bin/blocknet-tx.exe
dist/bin/blocknet-wallet.exe
dist/bin/test_blocknet.exe
dist/bin/blocknet-win64-setup.exe
build-mac:
runs-on: ubuntu-latest
container: blocknetdx/devbuilds:gitlab-mac
env:
HOST: x86_64-apple-darwin14
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- name: Setup depends
run: |
rm -rf $BASEPREFIX
mv $DEPENDS_CACHE $BASEPREFIX
- name: Build
run: |
chmod +x ./autogen.sh; sync
./autogen.sh
CONFIG_SITE="$BASEPREFIX/$HOST/share/config.site" ./configure CFLAGS="-g3 -O0" CXXFLAGS="-g3 -O0" --with-gui=qt5 --enable-debug --prefix=/
make clean
make -j $(nproc)
- name: Gather binaries
run: |
export DISTDIR=$PWD/dist
mkdir -p $DISTDIR
mkdir -p $DISTDIR/bin && llvm-dsymutil-6.0 src/qt/blocknet-qt -o $DISTDIR/bin/blocknet-qt.dSYM
make install DESTDIR=$DISTDIR
- uses: actions/upload-artifact@v3
with:
name: artifacts-mac
path: |
dist/bin/blocknet-cli
dist/bin/blocknetd
dist/bin/blocknet-qt
dist/bin/blocknet-qt.dSYM
dist/bin/blocknet-tx
dist/bin/blocknet-wallet
dist/bin/test_blocknet
dist/bin/test_blocknet-qt