mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-23 21:00:44 +00:00
feat: add goreleaser configuration file
Add .goreleaser.yaml configuration file to automate building and releasing multi-platform binaries, supporting operating systems such as darwin, freebsd, linux, windows, and architectures including 386, arm, amd64, arm64, mips, with cross-compilation settings and release configurations.
This commit is contained in:
37
.goreleaser.yaml
Normal file
37
.goreleaser.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
version: 2
|
||||
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
main: ./cmd/drip
|
||||
goos:
|
||||
- darwin
|
||||
- freebsd
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- "386"
|
||||
- arm
|
||||
- amd64
|
||||
- arm64
|
||||
- mips
|
||||
- mipsle
|
||||
- mips64
|
||||
- mips64le
|
||||
goarm:
|
||||
- "6"
|
||||
- "7"
|
||||
gomips:
|
||||
- hardfloat
|
||||
- softfloat
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s -w -X main.Version={{ .Tag }} -X main.GitCommit={{ .Commit }} -X main.BuildTime={{ .Date }}
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
|
||||
release:
|
||||
prerelease: true
|
||||
mode: replace
|
||||
Reference in New Issue
Block a user