Skip to content

Commit

Permalink
Enable linux/arm builds for ARMv7 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick authored Jan 29, 2020
1 parent b52e23b commit 24edffc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PACKAGE=dcrinstall
MAINDIR=$PWD/release/$PACKAGE-$TAG
mkdir -p $MAINDIR

SYS="darwin-amd64 freebsd-amd64 linux-386 linux-amd64 linux-arm64 openbsd-amd64 windows-386 windows-amd64"
SYS="darwin-amd64 freebsd-amd64 linux-386 linux-amd64 linux-arm linux-arm64 openbsd-amd64 windows-386 windows-amd64"

for i in $SYS; do
OS=$(echo $i | cut -f1 -d-)
Expand All @@ -23,8 +23,12 @@ for i in $SYS; do
if [[ $OS = "windows" ]]; then
OUT="$OUT.exe"
fi
ARM=
if [[ $ARCH = "arm" ]]; then
ARM=7
fi
echo "Building:" $OS $ARCH
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH go build -trimpath -tags 'safe,netgo' -o $OUT "${REL[@]}" ./cmd/dcrinstall
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -trimpath -tags 'safe,netgo' -o $OUT "${REL[@]}" ./cmd/dcrinstall
done

(cd $MAINDIR && openssl sha256 -r * > dcrinstall-$TAG-manifest.txt)

0 comments on commit 24edffc

Please sign in to comment.