mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
f0ef970aa6
closes #5782
46 lines
991 B
YAML
46 lines
991 B
YAML
distributable:
|
|
url: git+https://github.com/canonical/pebble
|
|
ref: v{{version.raw}}
|
|
|
|
display-name: canonical/pebble
|
|
|
|
versions:
|
|
github: canonical/pebble
|
|
strip:
|
|
- /^v/
|
|
|
|
platforms:
|
|
# not compiling presently
|
|
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
|
|
# - darwin
|
|
- linux
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: '*'
|
|
git-scm.org: '*'
|
|
gnu.org/sed: '*'
|
|
cmake.org: ^3
|
|
env:
|
|
CGO_ENABLED: 0
|
|
LDFLAGS:
|
|
- -w
|
|
- -s
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
script:
|
|
- go generate ./cmd
|
|
- 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:
|
|
- bin/pebble
|
|
|
|
test:
|
|
- run: pebble version | grep 'client v{{version}}'
|
|
if: <1.2
|
|
- run: test "$(pebble version --client)" = v{{version}}
|
|
if: '>=1.2'
|