Skip to content

Commit fc93baa

Browse files
committed
Merge branch 'eager_electron_5.3RC' into mainnet_5.3RC
2 parents cde0315 + 28e709c commit fc93baa

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

.github/workflows/boost_build.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build Boost
22
on:
33
push:
44
tags:
@@ -9,8 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
# os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
13-
os: [ubuntu-18.04, ubuntu-20.04]
12+
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
1413

1514
steps:
1615
- name: Create Build Environment
@@ -19,13 +18,12 @@ jobs:
1918
mkdir ${{runner.workspace}}/boost_prebuild
2019
sudo apt-get update
2120
22-
# - name: Create Build Environment [ubuntu 16.04]
23-
# shell: bash
24-
# if: matrix.os == 'ubuntu-16.04'
25-
# run: |
26-
# sudo apt-get install g++-7 gcc-7
27-
# echo "CC=gcc-7" >> $GITHUB_ENV
28-
# echo "CXX=g++-7" >> $GITHUB_ENV
21+
- name: Create Build Environment [ubuntu 16.04]
22+
shell: bash
23+
if: matrix.os == 'ubuntu-16.04'
24+
run: |
25+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
26+
sudo update-alternatives --set gcc "/usr/bin/gcc-9"
2927
3028
- name: Download
3129
shell: bash
@@ -40,16 +38,8 @@ jobs:
4038
cd ${{runner.workspace}}/boost
4139
./bootstrap.sh
4240
43-
# - name: Build [ubuntu 16.04]
44-
# shell: bash
45-
# if: matrix.os == 'ubuntu-16.04'
46-
# run: |
47-
# cd ${{runner.workspace}}/boost
48-
# ./b2 --target=static --toolset=gcc-7
49-
50-
- name: Build [ubuntu 18.04 && ubuntu 20.04]
41+
- name: Build
5142
shell: bash
52-
if: matrix.os != 'ubuntu-16.04'
5343
run: |
5444
cd ${{runner.workspace}}/boost
5545
./b2 --target=static

.github/workflows/build.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
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]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -33,10 +33,17 @@ jobs:
3333
3434
- name: Create Build Environment [ununtu all]
3535
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'
3737
run: |
3838
sudo apt-get update
3939
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"
4047
4148
- name: Create Build Environment [windows]
4249
shell: bash
@@ -53,7 +60,7 @@ jobs:
5360
5461
- name: Download boost [ununtu all]
5562
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'
5764
run: |
5865
git clone https://github.com/BeamMW/boost_prebuild_${{matrix.os}}.git ${{runner.workspace}}/boost_prebuild
5966
echo "BOOST_INCLUDEDIR=${{runner.workspace}}/boost_prebuild/include" >> $GITHUB_ENV
@@ -91,7 +98,7 @@ jobs:
9198

9299
- name: Build [ununtu all]
93100
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'
95102
run: make -j$(nproc)
96103

97104
- name: Build [windows]
@@ -108,7 +115,7 @@ jobs:
108115
run: ctest -C $BUILD_TYPE --verbose
109116

110117
- 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'
112119
continue-on-error: false
113120
shell: bash
114121
run: ctest --verbose
@@ -207,7 +214,7 @@ jobs:
207214

208215
- name: OS name [ununtu all]
209216
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'
211218
run: echo "OS_NAME=${{matrix.os}}" >> $GITHUB_ENV
212219

213220
- name: OS name [windows]
@@ -258,35 +265,35 @@ jobs:
258265
# Upload linux-prefix
259266
###############################################################################
260267
- uses: actions/upload-artifact@v2
261-
if: matrix.os == 'ubuntu-18.04'
268+
if: matrix.os == 'ubuntu-16.04'
262269
with:
263270
name: linux-beam-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
264271
path: artifacts/beam-node*
265272
if-no-files-found: error
266273

267274
- uses: actions/upload-artifact@v2
268-
if: matrix.os == 'ubuntu-18.04'
275+
if: matrix.os == 'ubuntu-16.04'
269276
with:
270277
name: linux-beam-wallet-cli${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
271278
path: artifacts/beam-wallet*
272279
if-no-files-found: error
273280

274281
- uses: actions/upload-artifact@v2
275-
if: matrix.os == 'ubuntu-18.04'
282+
if: matrix.os == 'ubuntu-16.04'
276283
with:
277284
name: linux-wallet-api${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
278285
path: artifacts/wallet-api*
279286
if-no-files-found: error
280287

281288
- uses: actions/upload-artifact@v2
282-
if: matrix.os == 'ubuntu-18.04'
289+
if: matrix.os == 'ubuntu-16.04'
283290
with:
284291
name: linux-explorer-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
285292
path: artifacts/explorer-node*
286293
if-no-files-found: error
287294

288295
- uses: actions/upload-artifact@v2
289-
if: matrix.os == 'ubuntu-18.04'
296+
if: matrix.os == 'ubuntu-16.04'
290297
with:
291298
name: linux-broadcaster${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}}
292299
path: artifacts/broadcaster*

0 commit comments

Comments
 (0)