Skip to content

Commit

Permalink
feat: add Github build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsak committed Jun 26, 2020
1 parent d54fbe1 commit 81be879
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Linux x86
GOOS=linux GOARCH=386 ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .
GOOS=linux GOARCH=amd64 ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .

# Linux arm
GOOS=linux GOARCH=arm ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .
GOOS=linux GOARCH=arm64 ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .

# Windows
GOOS=windows GOARCH=386 ; go build -o "xlsx2json-api-$GOOS-$GOARCH.exe" .
GOOS=windows GOARCH=amd64 ; go build -o "xlsx2json-api-$GOOS-$GOARCH.exe" .

# Mac OS
GOOS=darwin GOARCH=386 ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .
GOOS=darwin GOARCH=amd64 ; go build -o "xlsx2json-api-$GOOS-$GOARCH" .

0 comments on commit 81be879

Please sign in to comment.