-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Continuous Build
on:
push:
branches:
- master
- "**"
pull_request:
branches:
- master
jobs:
build:
name: Continuous Build
runs-on: ubuntu-20.04
steps:
- name: Install Linux packages
run: sudo apt update && sudo apt install -y --no-install-recommends debhelper libhidapi-libusb0
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Caching build artifacts and modules
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.sum') }}
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build and Test
run: env VERSION=ci@$GITHUB_REF make
- name: 'Upload binary for linux_x86_64'
uses: actions/upload-artifact@v2
with:
name: hamdeck-binary
path: ./hamdeck