Skip to content

Commit

Permalink
Updated build.sh to static builds.
Browse files Browse the repository at this point in the history
build.sh and module.tl now again produce identical results.

Signed-off-by: Eric Myhre <[email protected]>
  • Loading branch information
warpfork committed Dec 22, 2018
1 parent 2c25c7d commit b169f47
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions omnibus/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ rr="$(repeatr run <(refmt yaml=json << EOF
- "-c"
- |
export PATH=\$PATH:/app/go/go/bin
./goad install
export GOPATH=\$PWD/.gopath
export GOBIN=\$PWD/bin
CGO_ENABLED=0 go install --ldflags '-extldflags "-static"' ./cmd/*
outputs:
"/task/bin": {packtype: "tar"}
context:
Expand Down Expand Up @@ -84,7 +86,9 @@ rr="$(repeatr run <(refmt yaml=json << EOF
- "-c"
- |
export PATH=\$PATH:/app/go/go/bin
./fling install
export GOPATH=\$PWD/.gopath
export GOBIN=\$PWD/bin
CGO_ENABLED=0 go install --ldflags '-extldflags "-static"' ./cmd/*
outputs:
"/task/bin": {packtype: "tar"}
context:
Expand Down Expand Up @@ -115,7 +119,7 @@ rr="$(repeatr run <(refmt yaml=json << EOF
export PATH=\$PATH:/app/go/go/bin
export GOPATH=\$PWD/.gopath
export GOBIN=\$PWD/bin
go install ./cmd/*
CGO_ENABLED=0 go install --ldflags '-extldflags "-static"' ./cmd/*
outputs:
"/task/bin": {packtype: "tar"}
context:
Expand Down Expand Up @@ -144,7 +148,9 @@ rr="$(repeatr run <(refmt yaml=json << EOF
- "-c"
- |
export PATH=\$PATH:/app/go/go/bin
./goad
export GOPATH=\$PWD/.gopath
export GOBIN=\$PWD/bin
CGO_ENABLED=0 go install --ldflags '-extldflags "-static"' ./cmd/*
outputs:
"/task/bin": {packtype: "tar"}
context:
Expand Down

0 comments on commit b169f47

Please sign in to comment.