Skip to content

Commit

Permalink
Build for ARMv5
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrinyx committed Sep 27, 2014
1 parent 00df812 commit 8bd1a25
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/build-all
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ mkdir -p release

EXECUTABLE_NAME="exercism"

PLATFORMS="darwin/386 darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64"
PLATFORMS="darwin/386 darwin/amd64 linux/386 linux/amd64 windows/386 windows/amd64 linux/arm"

function build-architecture {
GOOS=${1%/*}
GOARCH=${1#*/}
GOARM=""

if [ $GOARCH == "arm" ]; then
GOARM=5
fi

echo "Creating $GOOS $GOARCH binary..."

GOOS=$GOOS GOARCH=$GOARCH "$(dirname $0)/build"
GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM "$(dirname $0)/build"

NAME=$GOOS
if [ $NAME == "darwin" ]; then
Expand All @@ -24,6 +30,9 @@ ARCH="32bit"
if [ $GOARCH == "amd64" ]; then
ARCH="64bit"
fi
if [ $GOARCH == "arm" ]; then
ARCH="arm-v5"
fi

cd out
ls
Expand Down

0 comments on commit 8bd1a25

Please sign in to comment.