Skip to content

Commit

Permalink
labeled cgo version instead of nocgo. #330
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Dey committed Feb 27, 2018
1 parent 9c523ad commit d396f58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/build_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ if [ -z "$TRAVIS_BUILD_DIR" ]; then
TRAVIS_BUILD_DIR=.
fi

echo $TRAVIS_BUILD_DIR
mkdir -p "${TRAVIS_BUILD_DIR}/releases"
cd "${TRAVIS_BUILD_DIR}/cmd/tegola"
echo "building bins into ${TRAVIS_BUILD_DIR}/releases"

for GOARCH in AMD64
do
for GOOS in darwin linux windows
do
FILENAME="${TRAVIS_BUILD_DIR}/releases/tegola_${GOOS}_${GOARCH}"
if [[ $CGO_ENABLED == 0 ]]; then
FILENAME="${FILENAME}_nocgo"
if [[ $CGO_ENABLED != 0 ]]; then
FILENAME="${FILENAME}_cgo"
fi
if [[ $GOOS == windows ]]; then
FILENAME="${FILENAME}.exe"
fi

go build -ldflags "${LDFLAGS}" -o ${FILENAME}
go build -ldflags "${LDFLAGS}" -o ${FILENAME} github.com/terranodo/tegola/cmd/tegola
chmod a+x ${FILENAME}
done
done
Expand Down
Empty file modified ci/build_docker.sh
100644 → 100755
Empty file.

0 comments on commit d396f58

Please sign in to comment.