8
8
9
9
steps :
10
10
- name : Checkout hnsd repository
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v3
12
12
with :
13
13
repository : ' handshake-org/hnsd'
14
14
21
21
ls -l
22
22
23
23
- name : Store hnsd binary
24
- uses : actions/upload-artifact@v2
24
+ uses : actions/upload-artifact@v3
25
25
with :
26
26
name : hnsd-bin
27
27
path : ./hnsd
@@ -31,34 +31,25 @@ jobs:
31
31
runs-on : ubuntu-18.04
32
32
33
33
steps :
34
+ - name : Checkout repository
35
+ uses : actions/checkout@v3
36
+
34
37
- name : Install go
35
- uses : actions/setup-go@v1
38
+ uses : actions/setup-go@v3
36
39
with :
37
40
go-version : ' 1.17'
38
-
39
- - name : Checkout repository
40
- uses : actions/checkout@v2
41
+ cache : true # Cache go modules
41
42
42
43
- name : Install dependencies
43
44
run : sudo apt install -y libgtk-3-dev libappindicator3-dev libunbound-dev
44
45
45
- - name : Cache go modules
46
- uses : actions/cache@v2
47
- with :
48
- path : |
49
- ~/.cache/go-build
50
- ~/go/pkg/mod
51
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
52
- restore-keys : |
53
- ${{ runner.os }}-go-
54
-
55
46
- name : Build fingertip
56
47
run : |
57
48
go build -trimpath -o ./builds/linux/appdir/usr/bin
58
49
ls -l builds/linux/appdir/usr/bin/
59
50
60
51
- name : Download hnsd binary
61
- uses : actions/download-artifact@v2
52
+ uses : actions/download-artifact@v3
62
53
with :
63
54
name : hnsd-bin
64
55
path : builds/linux/appdir/usr/bin
73
64
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/fingertip.desktop -appimage -executable=appdir/usr/bin/hnsd
74
65
75
66
- name : Store fingertip binary
76
- uses : actions/upload-artifact@v2
67
+ uses : actions/upload-artifact@v3
68
+ with :
69
+ name : fingertip-bin
70
+ path : ./builds/linux/appdir/usr/bin/fingertip
71
+
72
+ - name : Store fingertip appimage
73
+ uses : actions/upload-artifact@v3
77
74
with :
78
75
name : fingertip-appimage
79
76
path : ./builds/linux/Fingertip*.AppImage
0 commit comments