Skip to content

Commit

Permalink
build: Do not try to package when build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Jul 5, 2024
1 parent cb88706 commit 15a0916
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ export GOARCH=amd64
export GOOS=

for GOOS in darwin linux windows freebsd netbsd openbsd; do
go build
if ! go build; then
echo \
error: \
"building for GOARCH=$GOARCH GOOS=$GOOS failed" \
>/dev/stderr \
;
continue
fi

case "$GOOS" in
darwin) os=mac ;;
Expand Down

0 comments on commit 15a0916

Please sign in to comment.