-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8f8638
commit 4d15205
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ qodana.yaml | |
*.dll | ||
*.so | ||
*.dylib | ||
*.syso | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
|
||
# The lines below are called `modelines`. See `:help modeline` | ||
# Feel free to remove those if you don't want/need to use them. | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||
|
||
version: 2 | ||
|
||
env: | ||
- MODULE_PATH=github.com/{{ .Env.GITHUB_REPOSITORY }} | ||
|
||
before: | ||
hooks: | ||
- go generate ./... | ||
|
||
builds: | ||
- id: yutu | ||
env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
main: ./main.go | ||
flags: | ||
- -trimpath | ||
- -tags=netgo | ||
ldflags: | ||
- -s -w | ||
- -X {{ .Env.MODULE_PATH }}/cmd.Version={{ .Version }} | ||
- -X {{ .Env.MODULE_PATH }}/cmd.Commit={{ .ShortCommit }} | ||
- -X {{ .Env.MODULE_PATH }}/cmd.CommitDate={{ .CommitDate }} | ||
- -X {{ .Env.MODULE_PATH }}/cmd.Os={{ .Os }} | ||
- -X {{ .Env.MODULE_PATH }}/cmd.Arch={{ .Arch }} | ||
|
||
archives: | ||
- format: binary | ||
|
||
source: | ||
enabled: true | ||
|
||
checksum: | ||
algorithm: blake2b | ||
split: true | ||
ids: | ||
- yutu | ||
- source | ||
|
||
changelog: | ||
use: github | ||
sort: "" | ||
abbrev: 0 | ||
groups: | ||
- title: "Features" | ||
regexp: "^.*?:sparkles:.+" | ||
order: 0 | ||
- title: "Bug Fixes" | ||
regexp: "^.*?:bug:.+" | ||
order: 1 | ||
- title: "Documentation" | ||
regexp: "^.*?:memo:.+" | ||
order: 2 | ||
- title: "Others" | ||
order: 3 | ||
|
||
release: | ||
discussion_category_name: General | ||
|