-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c854bb4
commit 24ced85
Showing
5 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ ropoly | |
.DS_Store | ||
*.swp | ||
vendor | ||
bin |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# This is the build for a static binary on linux | ||
# CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo --ldflags '-extldflags "-static"' . | ||
mkdir bin | ||
docker run --rm -it \ | ||
-v $PWD:/go/src/github.com/polyverse/ropoly \ | ||
-w /go/src/github.com/polyverse/ropoly \ | ||
golang | ||
|
||
# This is the build for a dynamic binary on linux | ||
# CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo . | ||
|
||
# Use pv to build | ||
pv run maketool . | ||
echo "Copying libc binary into bin..." | ||
cp ./ropoly ./bin/ropoly-libc-x86_64 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
echo "Building Ropoly inside Docker..." | ||
|
||
echo "Installing dep..." | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
|
||
echo "Installing dependencies..." | ||
dep ensure | ||
|
||
echo "Building..." | ||
go build | ||
|