1 Star 0 Fork 14

任伟伟/aiges

forked from 科大讯飞/aiges 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.goreleaser.yml 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
maybaby 提交于 2022-06-15 18:53 . fix: archives fix
project_name: aiges
gomod:
# Proxy a module from proxy.golang.org, making the builds verifiable.
# This will only be effective if running against a tag. Snapshots will ignore this setting.
# Notice: for this to work your `build.main` must be a package, not a `.go` file.
#
# Default is false.
proxy: false
# If proxy is true, use these environment variables when running `go mod` commands (namely, `go mod tidy`).
# Defaults to `os.Environ()`.
env:
- GOPROXY=https://goproxy.cn
before:
hooks:
# You may remove this if you don't use go modules.
- go mod vendor
builds:
- env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- CC_FOR_TARGET=gcc-x86_64-linux-gnu
- PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
main: ./main
id: aiges
hooks:
pre:
- sudo apt-get install -y libnuma-dev
- mkdir -p {{ dir .Path }}/include
- cp -ar ./cgo/library/ {{ dir .Path }}/
- cp -ar ./cgo/header/widget/ {{ dir .Path }}/include/
binary: AIservice
goos:
- linux
goarch:
- amd64
tags:
- netgo
- static
- osusergo
ldflags:
# - -X github.com/labring/sealos/pkg/version.gitVersion={{.Version}}
# - -X github.com/labring/sealos/pkg/version.gitCommit={{.ShortCommit}}
# - -X github.com/labring/sealos/pkg/version.buildDate={{.Date}}
# - -extldflags "-static -fpic"
- -s -w
- -linkmode external
archives:
-
files:
- src: './cgo/library/*'
dst: 'library'
strip_parent: true
# # Strip parent folders when adding files to the archive.
# # Default: false
# strip_parent: false
- src: './cgo/header/widget/*'
dst: 'include'
strip_parent: true
# # Strip parent folders when adding files to the archive.
# # Default: false
# - replacements:
# darwin: Darwin
# linux: Linux
# amd64: x86_64
# arm64: aarch64
checksum:
disable: true
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/redrww/aiges.git
[email protected]:redrww/aiges.git
redrww
aiges
aiges
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385