Skip to content

Commit 406030c

Browse files
committed
ci: goreleaser tweaks
1 parent 3407b55 commit 406030c

3 files changed

Lines changed: 23 additions & 24 deletions

File tree

‎.goreleaser.yaml‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,30 @@
88

99
version: 2
1010

11-
before:
12-
hooks:
13-
- make conductor-build-binaries
14-
1511
builds:
12+
- id: "conductor"
13+
main: "./cmd/conductor/main.go"
14+
binary: "conductor"
15+
dir: .
16+
# We output to assets/dist so your //go:embed paths stay valid
17+
hooks:
18+
post:
19+
- mkdir -p assets/dist/{{ .Target }}
20+
- cp {{ .Path }} assets/dist/{{ .Target }}/{{ .ProjectName }}{{ .Ext }}
21+
env:
22+
- CGO_ENABLED=0
23+
goos:
24+
- linux
25+
- windows
26+
- darwin
27+
goarch:
28+
- amd64
29+
- arm
30+
- arm64
31+
ignore:
32+
- goos: windows
33+
goarch: arm
34+
1635
- id: "freight"
1736
main: "./cmd/freight"
1837
binary: "freight"

‎CHANGELOG.md‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ build-all: conductor-build-binaries build-freight
99
conductor-build-binaries:
1010
goreleaser release --snapshot --clean --config=./assets/.goreleaser.yaml
1111

12-
.Phony: conductor-dev-build-binaries
13-
conductor-dev-build-binaries:
14-
goreleaser release --snapshot --clean --config=./assets/.goreleaser.yaml
15-
1612
.Phony: test-go
1713
test-go:
1814
go test ./... --race

0 commit comments

Comments
 (0)