mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/pressly/sup
This commit is contained in:
parent
c23d06cfa5
commit
da432e2e5c
1 changed files with 30 additions and 0 deletions
30
projects/github.com/pressly/sup/package.yml
Normal file
30
projects/github.com/pressly/sup/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/pressly/sup/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: pressly/sup
|
||||||
|
|
||||||
|
strip:
|
||||||
|
- /^v/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: "1.16"
|
||||||
|
env:
|
||||||
|
GO_ARGS:
|
||||||
|
- -o "{{prefix}}/bin/"
|
||||||
|
LD_FLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
linux:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
script:
|
||||||
|
- go mod init
|
||||||
|
- go mod vendor
|
||||||
|
- go build ${GO_ARGS} -ldflags="$LD_FLAGS" ./cmd/sup
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/sup
|
||||||
|
|
||||||
|
test: sup --help
|
Loading…
Reference in a new issue