Skip to content

Commit

Permalink
build(goreleaser): refactor envs & archives
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Jul 8, 2023
1 parent 859b571 commit cd93280
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ builds:
- -s -w -X github.com/kitabisa/teler-proxy/common.Version=v{{.Version}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
Expand All @@ -13,3 +14,17 @@ builds:
- arm64
env:
- CGO_ENABLED=1
- CC_darwin_amd64=o64-clang
- CCX_darwin_amd64=o64-clang+
- CC_darwin_arm64=aarch64-apple-darwin20.2-clang
- CCX_darwin_arm64=aarch64-apple-darwin20.2-clang++
- CC_windows_amd64=x86_64-w64-mingw32-gc
- CCX_windows_amd64=x86_64-w64-mingw32-g++
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
- 'CCX={{ index .Env (print "CCX_" .Os "_" .Arch) }}'

archives:
- id: binary
format_overrides:
- goos: windows
format: zip

0 comments on commit cd93280

Please sign in to comment.