Skip to content

Commit

Permalink
Build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
robhaswell committed Nov 14, 2023
1 parent b22b5a7 commit 9b80977
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# Go workspace file
go.work

# Build outputs
bin/
11 changes: 11 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
oss=(linux darwin windows)
archs=(amd64 arm64 386)

for os in ${oss[@]}
do
for arch in ${archs[@]}
do
env GOOS=${os} GOARCH=${arch} go build -o bin/btflcli-${os}-${arch} .
done
done

0 comments on commit 9b80977

Please sign in to comment.