Skip to content

Commit

Permalink
Fix crossbuild script to continue after invalid arch.
Browse files Browse the repository at this point in the history
Closes #135
  • Loading branch information
machawk1 committed Apr 2, 2021
1 parent d2ef4cf commit e8dc164
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crossbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ for os in $oses; do
if [ $os == "windows" ]; then
GOOS=$os GOARCH=$arc go build -v -o $fn.exe
else
GOOS=$os GOARCH=$arc CGO_ENABLED=0 go build -v -a -installsuffix cgo -o $fn
GOOS=$os GOARCH=$arc CGO_ENABLED=0 go build -v -a -installsuffix cgo -o $fn || {
echo "Failed to build $os/$arc"
}
fi
done
done
Expand Down

0 comments on commit e8dc164

Please sign in to comment.