Skip to content

Commit a723493

Browse files
authored
Add macOS and Windows builds, fix deprecated directives (#175)
* Add macOS and Windows builds, fix deprecated directives * Add dist to .gitignore
1 parent 03cdb16 commit a723493

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ config.yaml
2525

2626
tmp/
2727
bin/
28+
29+
# GoReleaser
30+
dist/

.goreleaser.yaml

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
version: 2
2-
before:
3-
hooks:
4-
- go mod tidy
52
builds:
63
- env:
74
- CGO_ENABLED=0
8-
- PACKAGE=github.com/cterence/tailout
9-
ldflags:
10-
- -X ${PACKAGE}/internal/version.Version=${VERSION}
11-
- -X ${PACKAGE}/internal/version.CommitHash=${COMMIT_HASH}
12-
- -X ${PACKAGE}/internal/version.BuildTimestamp=${BUILD_TIMESTAMP}
135
goos:
146
- linux
15-
main: ./
7+
- darwin
8+
- windows
169
binary: tailout
1710
archives:
1811
- format_overrides:
1912
- goos: windows
20-
format: zip
13+
formats: ['zip']
2114
checksum:
2215
name_template: "checksums.txt"
2316
snapshot:
24-
name_template: "{{ .Tag }}-next"
17+
version_template: "{{ .Tag }}-next"
2518
changelog:
2619
sort: asc
2720
use: github

0 commit comments

Comments
 (0)