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