this should work

This commit is contained in:
Jacob Heider 2023-11-07 14:49:47 -05:00 committed by Jacob Heider
parent 0541068b8b
commit f6034632f7

View file

@ -5,10 +5,6 @@ distributable:
versions: versions:
github: containers/gvisor-tap-vsock/releases/tags github: containers/gvisor-tap-vsock/releases/tags
platforms:
- darwin
- linux/x86-64
provides: provides:
- bin/gvproxy - bin/gvproxy
- bin/qemu-wrapper - bin/qemu-wrapper
@ -16,17 +12,17 @@ provides:
build: build:
dependencies: dependencies:
go.dev: ^1.18 go.dev: ^1.18
script: | script:
if test "{{hw.platform}}" = "linux"; then - run: |
sed -i.bak 's/go build/go build -buildmode=pie/g' Makefile sed -i.bak 's/go build/go build -buildmode=pie/g' Makefile
fi rm Makefile.bak
if: linux
make --jobs {{ hw.concurrency }} - make --jobs {{ hw.concurrency }}
mkdir -p "{{ prefix }}"/bin - mkdir -p "{{ prefix }}"
mv bin/* "{{ prefix }}"/bin - cp -a bin "{{ prefix }}"
test: test:
script: | script:
gvproxy -help 2>&1 - gvproxy -help
gvproxy -help 2>&1 | grep "Usage of gvproxy:" - gvproxy -help 2>&1 | grep "Usage of gvproxy:"