Skip to content

Commit dc2def6

Browse files
committed
ci: add GoReleaser config for cross-platform builds
1 parent f68509d commit dc2def6

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
3+
builds:
4+
- main: ./cmd/thermal
5+
binary: thermal
6+
env:
7+
- CGO_ENABLED=0
8+
goos:
9+
- linux
10+
- darwin
11+
- windows
12+
goarch:
13+
- amd64
14+
- arm64
15+
ldflags:
16+
- -s -w
17+
18+
archives:
19+
- format: tar.gz
20+
name_template: >-
21+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
22+
format_overrides:
23+
- goos: windows
24+
format: zip
25+
26+
checksum:
27+
name_template: "checksums.txt"
28+
29+
changelog:
30+
sort: asc
31+
filters:
32+
exclude:
33+
- "^docs:"
34+
- "^test:"
35+
- "^chore:"

0 commit comments

Comments
 (0)