mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
02766bfb8d
commit
431fefd66b
|
@ -9,17 +9,19 @@ versions:
|
|||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.20
|
||||
script: |
|
||||
go build -v -ldflags="$LDFLAGS" -o aws-vault ./main.go
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
mv aws-vault "{{ prefix }}"/bin
|
||||
script: go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/aws-vault ./main.go
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -extldflags=-static
|
||||
- -w
|
||||
- -s
|
||||
- -X=main.Version=v{{version}}
|
||||
linux:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -extldflags=-static
|
||||
darwin:
|
||||
SDKROOT: $(xcrun --sdk macosx --show-sdk-path)
|
||||
CGO_ENABLED: 1
|
||||
|
||||
provides:
|
||||
- bin/aws-vault
|
||||
|
|
Loading…
Reference in a new issue