|
14 | 14 | runs-on: ${{ matrix.os }}
|
15 | 15 | strategy:
|
16 | 16 | matrix:
|
17 |
| - os: [macos-10.15, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019] |
| 17 | + os: [macos-10.15, ubuntu-16.04, windows-2019] |
| 18 | + #os: [macos-10.15, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019] |
18 | 19 |
|
19 | 20 | steps:
|
20 | 21 | - uses: actions/checkout@v2
|
|
42 | 43 | shell: bash
|
43 | 44 | if: matrix.os == 'ubuntu-16.04'
|
44 | 45 | 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" |
| 46 | + sudo add-apt-repository ppa:ubuntu-toolchain-r/test |
| 47 | + sudo apt-get update |
| 48 | + sudo apt-get install g++-7 |
| 49 | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 |
| 50 | + sudo update-alternatives --set gcc "/usr/bin/gcc-7" |
47 | 51 |
|
48 | 52 | - name: Create Build Environment [windows]
|
49 | 53 | shell: bash
|
@@ -146,16 +150,35 @@ jobs:
|
146 | 150 | codesign --deep --force -v -s "${{secrets.MACOS_SIGN_IDENTITY}}" -o runtime --timestamp explorer/explorer-node${{env.BEAM_TARGET_SUFFIX}}
|
147 | 151 | codesign --deep --force -v -s "${{secrets.MACOS_SIGN_IDENTITY}}" -o runtime --timestamp wallet/broadcaster/broadcaster${{env.BEAM_TARGET_SUFFIX}}
|
148 | 152 |
|
| 153 | + - name: Checksum [ubuntu] |
| 154 | + if: matrix.os == 'ubuntu-16.04' || matrix.os =='ubuntu-18.04' || matrix.os == 'ubuntu-20.04' |
| 155 | + run: | |
| 156 | + sha256sum beam/beam-node${{env.BEAM_TARGET_SUFFIX}} > beam/beam-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 157 | + sha256sum wallet/cli/beam-wallet${{env.BEAM_TARGET_SUFFIX}} > wallet/cli/beam-wallet${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 158 | + sha256sum wallet/api/wallet-api${{env.BEAM_TARGET_SUFFIX}} > wallet/api/wallet-api${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 159 | + sha256sum explorer/explorer-node${{env.BEAM_TARGET_SUFFIX}} > explorer/explorer-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 160 | + sha256sum wallet/broadcaster/broadcaster${{env.BEAM_TARGET_SUFFIX}} > wallet/broadcaster/broadcaster${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 161 | +
|
| 162 | + - name: Checksum [macos-10.15] |
| 163 | + if: matrix.os == 'macos-10.15' |
| 164 | + run: | |
| 165 | + shasum -a 256 beam/beam-node${{env.BEAM_TARGET_SUFFIX}} > beam/beam-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 166 | + shasum -a 256 wallet/cli/beam-wallet${{env.BEAM_TARGET_SUFFIX}} > wallet/cli/beam-wallet${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 167 | + shasum -a 256 wallet/api/wallet-api${{env.BEAM_TARGET_SUFFIX}} > wallet/api/wallet-api${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 168 | + shasum -a 256 explorer/explorer-node${{env.BEAM_TARGET_SUFFIX}} > explorer/explorer-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 169 | + shasum -a 256 wallet/broadcaster/broadcaster${{env.BEAM_TARGET_SUFFIX}} > wallet/broadcaster/broadcaster${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 170 | +
|
149 | 171 | - name: Collect [macos-10.15 && ununtu all]
|
150 | 172 | shell: bash
|
151 | 173 | if: matrix.os != 'windows-2019'
|
152 | 174 | run: |
|
153 | 175 | mkdir artifacts
|
154 |
| - tar -cvf artifacts/beam-node.tar -C beam beam-node${{env.BEAM_TARGET_SUFFIX}} beam-node.cfg |
155 |
| - tar -cvf artifacts/beam-wallet.tar -C wallet/cli beam-wallet${{env.BEAM_TARGET_SUFFIX}} beam-wallet.cfg |
156 |
| - tar -cvf artifacts/wallet-api.tar -C wallet/api wallet-api${{env.BEAM_TARGET_SUFFIX}} wallet-api.cfg |
157 |
| - tar -cvf artifacts/explorer-node.tar -C explorer explorer-node${{env.BEAM_TARGET_SUFFIX}} explorer-node.cfg |
158 |
| - tar -cvf artifacts/broadcaster.tar -C wallet/broadcaster broadcaster${{env.BEAM_TARGET_SUFFIX}} |
| 176 | + tar -cvf artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}}.tar -C beam beam-node${{env.BEAM_TARGET_SUFFIX}} beam-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt beam-node.cfg |
| 177 | + tar -cvf artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}}.tar -C wallet/cli beam-wallet${{env.BEAM_TARGET_SUFFIX}} beam-wallet${{env.BEAM_TARGET_SUFFIX}}-checksum.txt beam-wallet.cfg |
| 178 | + tar -cvf artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}}.tar -C wallet/api wallet-api${{env.BEAM_TARGET_SUFFIX}} wallet-api${{env.BEAM_TARGET_SUFFIX}}-checksum.txt wallet-api.cfg |
| 179 | + tar -cvf artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}}.tar -C explorer explorer-node${{env.BEAM_TARGET_SUFFIX}} explorer-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt explorer-node.cfg |
| 180 | + tar -cvf artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}}.tar -C wallet/broadcaster broadcaster${{env.BEAM_TARGET_SUFFIX}} broadcaster${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 181 | +
|
159 | 182 |
|
160 | 183 | - name: Collect [windows]
|
161 | 184 | shell: bash
|
@@ -183,130 +206,62 @@ jobs:
|
183 | 206 | cp explorer/${{env.BUILD_CONFIG}}/explorer-node${{env.BEAM_TARGET_SUFFIX}}.pdb pdb/explorer-node${{env.BEAM_TARGET_SUFFIX}}.pdb
|
184 | 207 | cp wallet/broadcaster/${{env.BUILD_CONFIG}}/broadcaster${{env.BEAM_TARGET_SUFFIX}}.pdb pdb/broadcaster${{env.BEAM_TARGET_SUFFIX}}.pdb
|
185 | 208 |
|
186 |
| - # - name: Checksum [macos-10.15] |
187 |
| - # if: matrix.os == 'macos-10.15' |
188 |
| - # run: | |
189 |
| - # shasum -a 256 artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-beam-node${{env.BEAM_TARGET_SUFFIX}}.txt |
190 |
| - # shasum -a 256 artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-beam-wallet${{env.BEAM_TARGET_SUFFIX}}.txt |
191 |
| - # shasum -a 256 artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-wallet-api${{env.BEAM_TARGET_SUFFIX}}.txt |
192 |
| - # shasum -a 256 artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-explorer-node${{env.BEAM_TARGET_SUFFIX}}.txt |
193 |
| - # shasum -a 256 artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-broadcaster${{env.BEAM_TARGET_SUFFIX}}.txt |
194 |
| - |
195 |
| - # - name: Checksum [ubuntu] |
196 |
| - # if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' |
197 |
| - # run: | |
198 |
| - # sha256sum artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-beam-node${{env.BEAM_TARGET_SUFFIX}}.txt |
199 |
| - # sha256sum artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-beam-wallet${{env.BEAM_TARGET_SUFFIX}}.txt |
200 |
| - # sha256sum artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-wallet-api${{env.BEAM_TARGET_SUFFIX}}.txt |
201 |
| - # sha256sum artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-explorer-node${{env.BEAM_TARGET_SUFFIX}}.txt |
202 |
| - # sha256sum artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}} > artifacts/checksum-broadcaster${{env.BEAM_TARGET_SUFFIX}}.txt |
203 |
| - |
204 |
| - # - name: Checksum [windows] |
205 |
| - # if: matrix.os == 'windows-2019' |
206 |
| - # run: | |
207 |
| - # certUtil -hashfile artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/checksum-beam-node${{env.BEAM_TARGET_SUFFIX}}.txt |
208 |
| - # certUtil -hashfile artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/checksum-beam-wallet${{env.BEAM_TARGET_SUFFIX}}.txt |
209 |
| - # certUtil -hashfile artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/checksum-wallet-api${{env.BEAM_TARGET_SUFFIX}}.txt |
210 |
| - # certUtil -hashfile artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/checksum-explorer-node${{env.BEAM_TARGET_SUFFIX}}.txt |
211 |
| - # certUtil -hashfile artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/checksum-broadcaster${{env.BEAM_TARGET_SUFFIX}}.txt |
| 209 | + - name: Checksum [windows] |
| 210 | + if: matrix.os == 'windows-2019' |
| 211 | + run: | |
| 212 | + certUtil -hashfile artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/beam-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 213 | + certUtil -hashfile artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/beam-wallet${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 214 | + certUtil -hashfile artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/wallet-api${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 215 | + certUtil -hashfile artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/explorer-node${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
| 216 | + certUtil -hashfile artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}}.exe SHA256 > artifacts/broadcaster${{env.BEAM_TARGET_SUFFIX}}-checksum.txt |
212 | 217 |
|
213 | 218 | - name: OS name [macos-10.15]
|
214 | 219 | if: matrix.os == 'macos-10.15'
|
215 |
| - run: echo "OS_NAME=mac" >> $GITHUB_ENV |
| 220 | + run: echo "PLATFORM_NAME=mac" >> $GITHUB_ENV |
216 | 221 |
|
217 | 222 | - name: OS name [ununtu all]
|
218 | 223 | shell: bash
|
219 | 224 | if: matrix.os == 'ubuntu-16.04' || matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
|
220 |
| - run: echo "OS_NAME=${{matrix.os}}" >> $GITHUB_ENV |
| 225 | + run: echo "PLATFORM_NAME=linux" >> $GITHUB_ENV |
221 | 226 |
|
222 | 227 | - name: OS name [windows]
|
223 | 228 | shell: bash
|
224 | 229 | if: matrix.os == 'windows-2019'
|
225 |
| - run: echo "OS_NAME=win" >> $GITHUB_ENV |
| 230 | + run: echo "PLATFORM_NAME=win" >> $GITHUB_ENV |
226 | 231 |
|
227 | 232 | ###############################################################################
|
228 | 233 | # Upload
|
229 | 234 | ###############################################################################
|
230 | 235 | - uses: actions/upload-artifact@v2
|
231 | 236 | with:
|
232 |
| - name: ${{env.OS_NAME}}-beam-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
233 |
| - path: artifacts/beam-node* |
234 |
| - if-no-files-found: error |
235 |
| - |
236 |
| - - uses: actions/upload-artifact@v2 |
237 |
| - with: |
238 |
| - name: ${{env.OS_NAME}}-beam-wallet-cli${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
239 |
| - path: artifacts/beam-wallet* |
240 |
| - if-no-files-found: error |
241 |
| - |
242 |
| - - uses: actions/upload-artifact@v2 |
243 |
| - with: |
244 |
| - name: ${{env.OS_NAME}}-wallet-api${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
245 |
| - path: artifacts/wallet-api* |
246 |
| - if-no-files-found: error |
247 |
| - |
248 |
| - - uses: actions/upload-artifact@v2 |
249 |
| - with: |
250 |
| - name: ${{env.OS_NAME}}-explorer-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
251 |
| - path: artifacts/explorer-node* |
252 |
| - if-no-files-found: error |
253 |
| - |
254 |
| - - uses: actions/upload-artifact@v2 |
255 |
| - with: |
256 |
| - name: ${{env.OS_NAME}}-broadcaster${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
257 |
| - path: artifacts/broadcaster* |
258 |
| - if-no-files-found: error |
259 |
| - |
260 |
| - # - uses: actions/upload-artifact@v2 |
261 |
| - # with: |
262 |
| - # name: ${{env.OS_NAME}}-checksums${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
263 |
| - # path: artifacts/checksum* |
264 |
| - # if-no-files-found: error |
265 |
| - |
266 |
| -############################################################################### |
267 |
| -# Upload linux-prefix |
268 |
| -############################################################################### |
269 |
| - - uses: actions/upload-artifact@v2 |
270 |
| - if: matrix.os == 'ubuntu-16.04' |
271 |
| - with: |
272 |
| - name: linux-beam-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
| 237 | + name: ${{env.PLATFORM_NAME}}-beam-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
273 | 238 | path: artifacts/beam-node*
|
274 | 239 | if-no-files-found: error
|
275 | 240 |
|
276 | 241 | - uses: actions/upload-artifact@v2
|
277 |
| - if: matrix.os == 'ubuntu-16.04' |
278 | 242 | with:
|
279 |
| - name: linux-beam-wallet-cli${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
| 243 | + name: ${{env.PLATFORM_NAME}}-beam-wallet-cli${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
280 | 244 | path: artifacts/beam-wallet*
|
281 | 245 | if-no-files-found: error
|
282 | 246 |
|
283 | 247 | - uses: actions/upload-artifact@v2
|
284 |
| - if: matrix.os == 'ubuntu-16.04' |
285 | 248 | with:
|
286 |
| - name: linux-wallet-api${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
| 249 | + name: ${{env.PLATFORM_NAME}}-wallet-api${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
287 | 250 | path: artifacts/wallet-api*
|
288 | 251 | if-no-files-found: error
|
289 | 252 |
|
290 | 253 | - uses: actions/upload-artifact@v2
|
291 |
| - if: matrix.os == 'ubuntu-16.04' |
292 | 254 | with:
|
293 |
| - name: linux-explorer-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
| 255 | + name: ${{env.PLATFORM_NAME}}-explorer-node${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
294 | 256 | path: artifacts/explorer-node*
|
295 | 257 | if-no-files-found: error
|
296 | 258 |
|
297 | 259 | - uses: actions/upload-artifact@v2
|
298 |
| - if: matrix.os == 'ubuntu-16.04' |
299 | 260 | with:
|
300 |
| - name: linux-broadcaster${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
| 261 | + name: ${{env.PLATFORM_NAME}}-broadcaster${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
301 | 262 | path: artifacts/broadcaster*
|
302 | 263 | if-no-files-found: error
|
303 | 264 |
|
304 |
| - # - uses: actions/upload-artifact@v2 |
305 |
| - # with: |
306 |
| - # name: linux-checksums${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} |
307 |
| - # path: artifacts/checksum* |
308 |
| - # if-no-files-found: error |
309 |
| - |
310 | 265 | ###############################################################################
|
311 | 266 | # Upload windows pdb
|
312 | 267 | ###############################################################################
|
|
0 commit comments