mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
e77b3af696
commit
f026556124
1 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/go-task/task/archive/refs/tags/v{{version}}.tar.gz
|
url: https://github.com/go-task/task/archive/refs/tags/v{{version}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
|
@ -13,7 +13,10 @@ provides:
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.19
|
go.dev: ^1.19
|
||||||
script: go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task
|
script:
|
||||||
|
- run: sed -i 's/info.Main.Version/"{{version}}"/g' version.go
|
||||||
|
working-directory: internal/version
|
||||||
|
- go build -o {{prefix}}/bin/task -ldflags="$LDFLAGS" ./cmd/task
|
||||||
env:
|
env:
|
||||||
GOBIN: ${{prefix}}/bin
|
GOBIN: ${{prefix}}/bin
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
|
@ -27,7 +30,6 @@ build:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
- task --init
|
||||||
task --init
|
- test -f Taskfile.yml
|
||||||
test -f Taskfile.yml
|
- "task --version | grep 'Task version: {{version}}'"
|
||||||
task --version | grep 'Task version: {{version}}'
|
|
||||||
|
|
Loading…
Reference in a new issue