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