mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+acorn.io/acorn-cli
This commit is contained in:
parent
998471a0c2
commit
75b54281e9
1 changed files with 28 additions and 0 deletions
28
projects/acorn.io/acorn-cli/package.yml
Normal file
28
projects/acorn.io/acorn-cli/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
distributable:
|
||||
url: https://github.com/acorn-io/runtime/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
# if there’s a github then we can parse the versions
|
||||
versions:
|
||||
github: acorn-io/runtime
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
#- -X github.com/acorn-io/runtime/cmd.Version={{ version }}
|
||||
#- -X github.com/acorn-io/runtime/cmd.GitCommit=$( git rev-parse HEAD )
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/acorn
|
||||
|
||||
provides:
|
||||
- bin/acorn
|
||||
|
||||
#test: test "$(acorn version)" = {{version}}
|
||||
test: acorn help
|
Loading…
Reference in a new issue