14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
- os : [macos-10.15, ubuntu-18.04, ubuntu-20.04, windows-2019]
17
+ os : [macos-10.15, ubuntu-16.04, ubuntu- 18.04, ubuntu-20.04, windows-2019]
18
18
19
19
steps :
20
20
- uses : actions/checkout@v2
@@ -33,10 +33,17 @@ jobs:
33
33
34
34
- name : Create Build Environment [ununtu all]
35
35
shell : bash
36
- if : matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
36
+ if : matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu- 18.04' || matrix.os == 'ubuntu-20.04'
37
37
run : |
38
38
sudo apt-get update
39
39
sudo apt-get install libssl-dev curl libxi-dev libcups2-dev -y
40
+
41
+ - name : Create Build Environment [ubuntu 16.04]
42
+ shell : bash
43
+ if : matrix.os == 'ubuntu-16.04'
44
+ run : |
45
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
46
+ sudo update-alternatives --set gcc "/usr/bin/gcc-9"
40
47
41
48
- name : Create Build Environment [windows]
42
49
shell : bash
53
60
54
61
- name : Download boost [ununtu all]
55
62
shell : bash
56
- if : matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
63
+ if : matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu- 18.04' || matrix.os == 'ubuntu-20.04'
57
64
run : |
58
65
git clone https://github.com/BeamMW/boost_prebuild_${{matrix.os}}.git ${{runner.workspace}}/boost_prebuild
59
66
echo "BOOST_INCLUDEDIR=${{runner.workspace}}/boost_prebuild/include" >> $GITHUB_ENV
91
98
92
99
- name : Build [ununtu all]
93
100
shell : bash
94
- if : matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
101
+ if : matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu- 18.04' || matrix.os == 'ubuntu-20.04'
95
102
run : make -j$(nproc)
96
103
97
104
- name : Build [windows]
@@ -108,7 +115,7 @@ jobs:
108
115
run : ctest -C $BUILD_TYPE --verbose
109
116
110
117
- name : Test [ununtu all]
111
- if : matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
118
+ if : matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu- 18.04' || matrix.os == 'ubuntu-20.04'
112
119
continue-on-error : false
113
120
shell : bash
114
121
run : ctest --verbose
@@ -207,7 +214,7 @@ jobs:
207
214
208
215
- name : OS name [ununtu all]
209
216
shell : bash
210
- if : matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
217
+ if : matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu- 18.04' || matrix.os == 'ubuntu-20.04'
211
218
run : echo "OS_NAME=${{matrix.os}}" >> $GITHUB_ENV
212
219
213
220
- name : OS name [windows]
@@ -258,35 +265,35 @@ jobs:
258
265
# Upload linux-prefix
259
266
# ##############################################################################
260
267
- uses : actions/upload-artifact@v2
261
- if : matrix.os == 'ubuntu-18 .04'
268
+ if : matrix.os == 'ubuntu-16 .04'
262
269
with :
263
270
name : linux-beam-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
264
271
path : artifacts/beam-node*
265
272
if-no-files-found : error
266
273
267
274
- uses : actions/upload-artifact@v2
268
- if : matrix.os == 'ubuntu-18 .04'
275
+ if : matrix.os == 'ubuntu-16 .04'
269
276
with :
270
277
name : linux-beam-wallet-cli${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
271
278
path : artifacts/beam-wallet*
272
279
if-no-files-found : error
273
280
274
281
- uses : actions/upload-artifact@v2
275
- if : matrix.os == 'ubuntu-18 .04'
282
+ if : matrix.os == 'ubuntu-16 .04'
276
283
with :
277
284
name : linux-wallet-api${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
278
285
path : artifacts/wallet-api*
279
286
if-no-files-found : error
280
287
281
288
- uses : actions/upload-artifact@v2
282
- if : matrix.os == 'ubuntu-18 .04'
289
+ if : matrix.os == 'ubuntu-16 .04'
283
290
with :
284
291
name : linux-explorer-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
285
292
path : artifacts/explorer-node*
286
293
if-no-files-found : error
287
294
288
295
- uses : actions/upload-artifact@v2
289
- if : matrix.os == 'ubuntu-18 .04'
296
+ if : matrix.os == 'ubuntu-16 .04'
290
297
with :
291
298
name : linux-broadcaster${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
292
299
path : artifacts/broadcaster*
0 commit comments