Skip to content

Commit

Permalink
Include build for all platforms script
Browse files Browse the repository at this point in the history
  • Loading branch information
angelsolaorbaiceta committed Apr 23, 2022
1 parent 2dbf62e commit f309e10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore compiled binary
# Ignore compiled binaries
inkfem
bin/

# Ignore sliced structure files & matrix images
examples/*.inkfempre
Expand Down
8 changes: 8 additions & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Builds the CLI for all operating systems
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/inkfem_linux_amd64 inkfem.go
GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o bin/inkfem_linux_arm64 inkfem.go

GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o bin/inkfem_darwin_amd64 inkfem.go
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o bin/inkfem_darwin_arm64 inkfem.go

GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o bin/inkfem_windows_amd64.exe inkfem.go

0 comments on commit f309e10

Please sign in to comment.