Skip to content

Commit

Permalink
Adds build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Moran committed May 22, 2019
1 parent 0f459b5 commit ec46ade
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -exu

function main() {
local version
version="${1}"

for os in darwin linux; do
GOOS="${os}" GOARCH=amd64 go build -o "faux-${os}-amd64" -ldflags "-X main.version=${version}" .
shasum -a 256 "faux-${os}-amd64"
done

}

main "${@:-}"

0 comments on commit ec46ade

Please sign in to comment.