Skip to content

Commit

Permalink
Add build-all script
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Apr 26, 2022
1 parent 130ae2b commit cae8041
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -e

build() {
echo "Building $1-$2${3:-} ..."
GOOS="$1" GOARCH="$2" go build -o "./bin/json-strip-comments-$1-$2${3:-}" ./cmd/json-strip-comments/main.go
}

build darwin arm64
build darwin amd64
build linux amd64
build linux arm
build linux arm64
build windows amd64 ".exe"

0 comments on commit cae8041

Please sign in to comment.