-
Notifications
You must be signed in to change notification settings - Fork 92
77 lines (65 loc) · 1.38 KB
/
build.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build on Push
on:
push:
paths-ignore:
- docs/**
- README.md
pull_request:
branches:
- master
paths-ignore:
- docs/**
- README.md
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19.10
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: make
- name: Test
run: make test
- name: Build (linux)
env:
GOOS: linux
GOARCH: amd64
run: make
- name: Build (linux/arm)
env:
GOOS: linux
GOARCH: arm64
run: make
- name: Build (darwin)
env:
GOOS: darwin
GOARCH: amd64
run: make
- name: Build (darwin/arm)
env:
GOOS: darwin
GOARCH: arm64
run: make
- name: Build (windows)
env:
GOOS: windows
GOARCH: amd64
run: make
- name: Build (windows/arm)
env:
GOOS: windows
GOARCH: arm64
run: make
- name: Snap Build
uses: snapcore/action-build@v1
id: snapbuild
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3