pantry/projects/acorn.io/acorn-cli/package.yml
2023-11-17 13:05:46 -05:00

29 lines
655 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://github.com/acorn-io/runtime/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
# if theres 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