Skip to content

Commit c234893

Browse files
committed
ci: update actions and export fingertip binary
1 parent 89216f4 commit c234893

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

.github/workflows/build-linux.yml

+15-18
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout hnsd repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
with:
1313
repository: 'handshake-org/hnsd'
1414

@@ -21,7 +21,7 @@ jobs:
2121
ls -l
2222
2323
- name: Store hnsd binary
24-
uses: actions/upload-artifact@v2
24+
uses: actions/upload-artifact@v3
2525
with:
2626
name: hnsd-bin
2727
path: ./hnsd
@@ -31,34 +31,25 @@ jobs:
3131
runs-on: ubuntu-18.04
3232

3333
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v3
36+
3437
- name: Install go
35-
uses: actions/setup-go@v1
38+
uses: actions/setup-go@v3
3639
with:
3740
go-version: '1.17'
38-
39-
- name: Checkout repository
40-
uses: actions/checkout@v2
41+
cache: true # Cache go modules
4142

4243
- name: Install dependencies
4344
run: sudo apt install -y libgtk-3-dev libappindicator3-dev libunbound-dev
4445

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-
5546
- name: Build fingertip
5647
run: |
5748
go build -trimpath -o ./builds/linux/appdir/usr/bin
5849
ls -l builds/linux/appdir/usr/bin/
5950
6051
- name: Download hnsd binary
61-
uses: actions/download-artifact@v2
52+
uses: actions/download-artifact@v3
6253
with:
6354
name: hnsd-bin
6455
path: builds/linux/appdir/usr/bin
@@ -73,7 +64,13 @@ jobs:
7364
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/fingertip.desktop -appimage -executable=appdir/usr/bin/hnsd
7465
7566
- 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
7774
with:
7875
name: fingertip-appimage
7976
path: ./builds/linux/Fingertip*.AppImage

0 commit comments

Comments
 (0)