-
Notifications
You must be signed in to change notification settings - Fork 70
80 lines (65 loc) · 1.86 KB
/
go.yml
File metadata and controls
80 lines (65 loc) · 1.86 KB
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
78
79
80
name: Go
on:
pull_request:
branches:
- main
- release-*
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install system deps
run: 'sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev'
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Tidy
run: make tidy
- name: Vet
run: make vet
- name: Format
run: make fmt
- name: Run golangci linting checks
run: make lint
- name: Test
run: make cover
- name: Coveralls
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.out
fail-on-error: 'false'
build-linux-binaries:
name: Build Multi-arch-linux
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ linux ]
architecture:
- amd64
- arm64
- ppc64le
- s390x
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build linux binary for ${{ matrix.architecture }}
run: make build-linux-${{ matrix.architecture }}
build-mac-binaries:
name: Build Multi-arch-mac
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [ amd64, arm64 ]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build Mac binary for ${{ matrix.architecture }}
run: make build-mac-${{ matrix.architecture }}