mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
f9609abda4
commit
f0ef970aa6
1 changed files with 17 additions and 10 deletions
|
@ -10,9 +10,9 @@ versions:
|
||||||
- /^v/
|
- /^v/
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
# not compiling presently
|
# not compiling presently
|
||||||
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
|
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
|
||||||
# - darwin
|
# - darwin
|
||||||
- linux
|
- linux
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -24,16 +24,23 @@ build:
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -w
|
- -w
|
||||||
- -s
|
- -s
|
||||||
linux:
|
linux:
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
script:
|
script:
|
||||||
- go generate ./cmd
|
- go generate ./cmd
|
||||||
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
|
- run: sed -i 's/Version = ".*"/Version = "v{{version}}"/' version_generated.go
|
||||||
|
working-directory: cmd
|
||||||
|
if: <1.2
|
||||||
|
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pebble
|
- bin/pebble
|
||||||
|
|
||||||
test: test "$(pebble version --client)" = v{{version}}
|
test:
|
||||||
|
- run: pebble version | grep 'client v{{version}}'
|
||||||
|
if: <1.2
|
||||||
|
- run: test "$(pebble version --client)" = v{{version}}
|
||||||
|
if: '>=1.2'
|
||||||
|
|
Loading…
Reference in a new issue