mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
5133243391
commit
63b4f81234
1 changed files with 14 additions and 2 deletions
|
@ -1,20 +1,32 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/schollz/croc/archive/v{{version}}.tar.gz
|
url: https://github.com/schollz/croc/archive/v{{version}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: schollz/croc
|
github: schollz/croc
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: '*'
|
go.dev: '*'
|
||||||
script:
|
script:
|
||||||
- go build $ARGS -ldflags="-s -w"
|
- go build $ARGS -ldflags="$GO_LDFLAGS"
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
- -o={{prefix}}/bin/croc
|
- -o={{prefix}}/bin/croc
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X github.com/schollz/croc/v{{version.major}}/src/cli.Version={{version}}
|
||||||
linux:
|
linux:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -asan
|
- -asan
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/croc
|
- bin/croc
|
||||||
test: croc --version | grep {{version}}
|
|
||||||
|
test:
|
||||||
|
- croc --version
|
||||||
|
- croc --version | grep {{version}}
|
||||||
|
|
Loading…
Reference in a new issue