mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
64202b75fd
commit
5912c69453
1 changed files with 10 additions and 11 deletions
|
@ -8,18 +8,17 @@ versions:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: '>=1.18<1.20'
|
go.dev: '>=1.20'
|
||||||
gnu.org/patch: '*'
|
gnu.org/patch: '*'
|
||||||
script: |
|
script:
|
||||||
if test "{{hw.platform}}" = "linux"; then
|
# Need to pass -buildmode=pie to the build
|
||||||
# Need to pass -buildmode=pie to the build
|
# or segmentation fault
|
||||||
# or segmentation fault
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
- run: patch -p1 <props/ldflags.diff
|
||||||
patch -p1 <props/ldflags.diff
|
if: linux
|
||||||
fi
|
- make build CGO_ENABLED=0
|
||||||
make build CGO_ENABLED=0
|
- mkdir -p {{prefix}}/bin
|
||||||
mkdir -p {{prefix}}/bin
|
- mv cmd/ipfs/ipfs {{prefix}}/bin
|
||||||
mv cmd/ipfs/ipfs {{prefix}}/bin
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue