2024-03-12 19:40:16 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/budimanjojo/talhelper/archive/refs/tags/{{version.tag}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: budimanjojo/talhelper
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.21
|
2024-06-04 17:45:37 +03:00
|
|
|
script: go build $ARGS -ldflags="$LDFLAGS"
|
2024-03-12 19:40:16 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -trimpath
|
|
|
|
- -o={{prefix}}/bin/talhelper
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -X github.com/budimanjojo/talhelper/cmd.version={{version}}
|
|
|
|
linux:
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/talhelper
|
|
|
|
|
|
|
|
test:
|
2024-06-04 17:45:37 +03:00
|
|
|
# removed in v3, oddly
|
|
|
|
- run: talhelper --version | grep {{version}}
|
|
|
|
if: <3
|
|
|
|
- talhelper gensecret | grep 'bootstraptoken'
|