Skip to content

Commit 16c346d

Browse files
authored
Merge pull request #20 from The-GNTL-Project/Split-build
v1.0.1 ready
2 parents 52d806c + 9ef6308 commit 16c346d

File tree

3 files changed

+73
-22
lines changed

3 files changed

+73
-22
lines changed
+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: GNTL Electron Wallet Build for Linux and Windows
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [windows-2019, ubuntu-20.04]
11+
12+
steps:
13+
- name: Check-out Repo
14+
uses: actions/checkout@v1
15+
16+
- name: Install Node
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: "12.20.2"
20+
21+
- name: Install Dependencies
22+
run: npm install -f
23+
24+
- name: Download latest GNTL Release
25+
run: node ./build/download-binaries.js
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract Binaries (Tar)
30+
if: ${{runner.os == 'Linux'}}
31+
run: tar -xf latest.gz
32+
shell: bash
33+
working-directory: ./downloads
34+
35+
- name: Extract Binaries (7z)
36+
if: runner.os == 'Windows'
37+
run: 7z x latest.7z
38+
shell: bash
39+
working-directory: ./downloads
40+
41+
- name: Move Daemon and Wallet Binaries
42+
run: |
43+
find ./downloads -type f -name "gntld*" -exec cp '{}' ./bin \;
44+
find ./downloads -type f -name "gntl-wallet-rpc*" -exec cp '{}' ./bin \;
45+
shell: bash
46+
47+
- name: Verify Binaries
48+
run: ls ./bin
49+
shell: bash
50+
51+
- name: Publish Binaries
52+
run: npm run build
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Remove un-needed Artifacts
57+
run: rm -r -- ./*/
58+
shell: bash
59+
working-directory: ./dist/electron-mat/Packaged
60+
61+
- name: Upload Artifacts
62+
uses: actions/upload-artifact@v1
63+
with:
64+
name: ${{ runner.OS }}
65+
path: dist/electron-mat/Packaged

.github/workflows/build.yml .github/workflows/build-macos.yml

+7-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GNTL Electron Wallet Build
1+
name: GNTL Electron Wallet Build for macOS
22
on: [push, pull_request]
33

44
jobs:
@@ -7,10 +7,10 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [windows-2019, macos-11, ubuntu-20.04]
10+
os: [macos-11]
1111

1212
steps:
13-
- name: Check-out Git Repo
13+
- name: Check-out Repo
1414
uses: actions/checkout@v1
1515

1616
- name: Install Node
@@ -21,24 +21,17 @@ jobs:
2121
- name: Install Dependencies
2222
run: npm install -f
2323

24-
- name: Download GNTL Binaries
24+
- name: Download latest GNTL Release
2525
run: node ./build/download-binaries.js
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

29-
- name: Extract GNTL Tar Binaries
30-
if: ${{runner.os == 'Linux' || runner.os == 'macOS'}}
29+
- name: Extract Binaries (Tar)
3130
run: tar -xf latest.gz
3231
shell: bash
3332
working-directory: ./downloads
3433

35-
- name: Extract GNTL 7z Binaries
36-
if: runner.os == 'Windows'
37-
run: 7z x latest.7z
38-
shell: bash
39-
working-directory: ./downloads
40-
41-
- name: Move GNTL Daemon and Wallet Binaries
34+
- name: Move Daemon and Wallet Binaries
4235
run: |
4336
find ./downloads -type f -name "gntld*" -exec cp '{}' ./bin \;
4437
find ./downloads -type f -name "gntl-wallet-rpc*" -exec cp '{}' ./bin \;
@@ -48,14 +41,7 @@ jobs:
4841
run: ls ./bin
4942
shell: bash
5043

51-
- name: Publish Windows and Linux Binaries
52-
if: runner.os != 'macOS'
53-
run: npm run build
54-
env:
55-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
57-
- name: Publish mac Binaries
58-
if: runner.os == 'macOS'
44+
- name: Publish Binaries
5945
run: npm run build
6046
env:
6147
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gntl-electron-wallet",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"daemonVersion": "1.0.2",
55
"description": "Modern GUI interface for GNTL Coin",
66
"productName": "GNTL Electron Wallet",

0 commit comments

Comments
 (0)