mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
854d5866dd
commit
0ae385a5c8
1 changed files with 29 additions and 0 deletions
29
projects/depot.dev/package.yml
Normal file
29
projects/depot.dev/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
distributable:
|
||||
url: https://github.com/depot/cli/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: depot/cli
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ~1.21
|
||||
gnu.org/coreutils: '*' # for date
|
||||
env:
|
||||
GO_LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/depot/cli/internal/build.Version={{version}}
|
||||
- -X github.com/depot/cli/internal/build.Date="$(date +%F)"
|
||||
- -X github.com/depot/cli/internal/build.SentryEnvironment=release
|
||||
linux:
|
||||
GO_LDFLAGS:
|
||||
- -buildmode=pie
|
||||
darwin:
|
||||
CGO_ENABLED: 1
|
||||
script: go build -v -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/depot ./cmd/depot
|
||||
|
||||
provides:
|
||||
- bin/depot
|
||||
|
||||
test: depot --version | grep 'depot version {{version}} ('
|
Loading…
Reference in a new issue