Skip to content

Commit

Permalink
chore: add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Aug 2, 2023
1 parent 71fac20 commit 6006868
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
env:
- CGO_ENABLED=1

builds:
- id: teler-proxy_darwin-amd64
binary: teler-proxy
main: ./cmd/teler-proxy
goarch:
- amd64
goos:
- darwin
env:
- CC=o64-clang
- CXX=o64-clang++
flags:
- -trimpath
ldflags:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version={{ .Version }}

- id: teler-proxy_darwin-arm64
binary: teler-proxy
main: ./cmd/teler-proxy
goarch:
- arm64
goos:
- darwin
env:
- CC=oa64-clang
- CXX=oa64-clang++
flags:
- -trimpath
ldflags:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version={{ .Version }}

- id: teler-proxy_linux-amd64
binary: teler-proxy
main: ./cmd/teler-proxy
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goarch:
- amd64
goos:
- linux
flags:
- -trimpath
ldflags:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version={{ .Version }}

- id: teler-proxy_linux-arm64
binary: teler-proxy
main: ./cmd/teler-proxy
goarch:
- arm64
goos:
- linux
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -trimpath
ldflags:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version={{ .Version }}

- id: teler-proxy_windows-amd64
binary: teler-proxy
main: ./cmd/teler-proxy
goarch:
- amd64
goos:
- windows
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
flags:
- -trimpath
- -buildmode=exe
ldflags:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version={{ .Version }}

universal_binaries:
- id: teler-proxy_darwin-universal
ids:
- teler-proxy_darwin-amd64
- teler-proxy_darwin-arm64
replace: true
name_template: "teler-proxy"

archives:
- id: build
builds:
- teler-proxy_darwin-universal
- teler-proxy_linux-amd64
- teler-proxy_linux-arm64
- teler-proxy_windows-amd64
name_template: "teler-proxy_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: zip

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc

0 comments on commit 6006868

Please sign in to comment.