mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
5a1e537ba1
* taskfile.dev * simplifications --------- Co-authored-by: Jacob Heider <jhheider@gmail.com>
34 lines
717 B
YAML
34 lines
717 B
YAML
#FIXME: we should use source if possible
|
|
distributable: ~
|
|
|
|
displayname: Task
|
|
|
|
versions:
|
|
github: go-task/task/releases/tags
|
|
|
|
provides:
|
|
- bin/task
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.19
|
|
working-directory: ${{prefix}}/bin
|
|
script: go install -ldflags="$LDFLAGS" github.com/go-task/task/v3/cmd/task@v{{version}}
|
|
env:
|
|
GOBIN: ${{prefix}}/bin
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X main.Version={{version}}
|
|
linux:
|
|
# or segmentation fault
|
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
test:
|
|
script: |
|
|
task --init
|
|
test -f Taskfile.yml
|
|
task --version | grep 'Task version: v{{version}}'
|