mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
af708fd95d
* new file: projects/github.com/everywall/ladder/package.yml * let's try 8081 port * let's try to find free port * set 8082 port i want to get rid of using`nc` * go version --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
39 lines
806 B
YAML
39 lines
806 B
YAML
distributable:
|
|
url: https://github.com/everywall/ladder/archive/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
versions:
|
|
github: everywall/ladder
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.21.1
|
|
script:
|
|
- echo '{{version}}' > handlers/VERSION
|
|
- go build $GO_ARGS -ldflags="$LDFLAGS" ./cmd
|
|
env:
|
|
GO_ARGS:
|
|
- -trimpath
|
|
- -o="{{prefix}}/bin/ladder"
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
provides:
|
|
- bin/ladder
|
|
test:
|
|
dependencies:
|
|
curl.se: '*'
|
|
linux:
|
|
gitlab.com/procps-ng/procps: '*'
|
|
script:
|
|
- ladder -p 8082 &
|
|
- sleep 1
|
|
- curl -L http://127.0.0.1:8082/https://pkgx.sh -o test.html
|
|
- $KILL ladder
|
|
- cat test.html | grep 'Run Anything'
|
|
env:
|
|
darwin:
|
|
KILL: killall
|
|
linux:
|
|
KILL: pkill
|