mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 05:56:46 +08:00
docs: 测试构建
This commit is contained in:
parent
a198aeabe5
commit
26d0955ec6
44
.github/conf/.goreleaser.yml
vendored
44
.github/conf/.goreleaser.yml
vendored
@ -1,7 +1,4 @@
|
|||||||
# GoReleaser v2 配置文件
|
# GoReleaser v1 配置文件
|
||||||
version: 2
|
|
||||||
|
|
||||||
# 项目名称 - 直接使用环境变量
|
|
||||||
project_name: "{{ .Env.PROJECT_NAME }}"
|
project_name: "{{ .Env.PROJECT_NAME }}"
|
||||||
|
|
||||||
# 构建前钩子
|
# 构建前钩子
|
||||||
@ -41,16 +38,6 @@ builds:
|
|||||||
- -X main.builtBy=goreleaser
|
- -X main.builtBy=goreleaser
|
||||||
mod_timestamp: "{{ .CommitTimestamp }}"
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
||||||
|
|
||||||
# UPX 压缩配置
|
|
||||||
upx:
|
|
||||||
- ids: [default]
|
|
||||||
enabled: true
|
|
||||||
goos: ["windows", "linux"]
|
|
||||||
goarch: ["amd64", "386"]
|
|
||||||
compress: best
|
|
||||||
brute: false
|
|
||||||
lzma: true
|
|
||||||
|
|
||||||
# 归档配置
|
# 归档配置
|
||||||
archives:
|
archives:
|
||||||
- id: default
|
- id: default
|
||||||
@ -74,7 +61,6 @@ checksum:
|
|||||||
# 变更日志
|
# 变更日志
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
use: github
|
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- "^docs:"
|
- "^docs:"
|
||||||
@ -119,32 +105,6 @@ release:
|
|||||||
|
|
||||||
如有问题请提交 [Issue](https://github.com/{{ .Env.GITHUB_OWNER }}/{{ .Env.GITHUB_REPO }}/issues) 💬
|
如有问题请提交 [Issue](https://github.com/{{ .Env.GITHUB_OWNER }}/{{ .Env.GITHUB_REPO }}/issues) 💬
|
||||||
|
|
||||||
# 快照版本配置
|
# 快照版本
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-dev-{{ .ShortCommit }}"
|
name_template: "{{ incpatch .Version }}-dev-{{ .ShortCommit }}"
|
||||||
|
|
||||||
# 元数据
|
|
||||||
metadata:
|
|
||||||
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
||||||
|
|
||||||
# 通用配置
|
|
||||||
env:
|
|
||||||
- GOPROXY=https://proxy.golang.org,direct
|
|
||||||
- GOSUMDB=sum.golang.org
|
|
||||||
- GOPRIVATE=
|
|
||||||
|
|
||||||
# 构建钩子
|
|
||||||
hooks:
|
|
||||||
pre:
|
|
||||||
- go test ./...
|
|
||||||
post:
|
|
||||||
- echo "构建完成"
|
|
||||||
|
|
||||||
# 全局标志
|
|
||||||
flags:
|
|
||||||
- -trimpath
|
|
||||||
|
|
||||||
# 全局环境变量
|
|
||||||
global_env:
|
|
||||||
- GO111MODULE=on
|
|
||||||
- CGO_ENABLED=0
|
|
Loading…
Reference in New Issue
Block a user