mirror of
https://github.com/ivabus/pantry
synced 2024-11-12 19:45:19 +03:00
new file: projects/fury.co/package.yml
This commit is contained in:
parent
ae500994d5
commit
96cbf2c67d
32
projects/fury.co/package.yml
Normal file
32
projects/fury.co/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
distributable:
|
||||||
|
url: git+https://github.com/gemfury/cli.git
|
||||||
|
ref: ${{version.tag}}
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: gemfury/cli
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script:
|
||||||
|
- go build $ARGS -ldflags="$LDFLAGS" ./cmd/fury
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -v
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/fury
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.Version={{version}}
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/fury
|
||||||
|
|
||||||
|
test:
|
||||||
|
- fury --version | grep {{version}}
|
||||||
|
- fury --help | grep 'Listing of your collaborations'
|
||||||
|
# more testing requires authorization
|
Loading…
Reference in a new issue