mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
663d37d3db
closes #5449
26 lines
604 B
YAML
26 lines
604 B
YAML
distributable:
|
|
url: https://github.com/pokt-network/pocket-core/archive/refs/tags/RC-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: pokt-network/pocket-core/tags
|
|
strip: /^RC-/
|
|
|
|
provides:
|
|
- bin/pocket
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.18
|
|
script:
|
|
- run: sed -i -e 's/AppVersion = ".*"$/AppVersion = "RC-{{version}}"/' app.go
|
|
working-directory: app
|
|
- go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}'/bin/pocket ./app/cmd/pocket_core/main.go
|
|
env:
|
|
linux:
|
|
GO_LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
test:
|
|
- pocket version
|
|
- pocket version | grep {{version}}
|