Skip to content

Commit

Permalink
Precompile more platform binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Mar 24, 2019
1 parent 36ef329 commit f001f7d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 19 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,33 @@ jobs:
- run:
name: Build linux Binary
command: |
make build
tar czvf artifacts/sower_linux_amd64.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=amd64 make build
tar czvf artifacts/sower-linux-amd64.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=386 make build
tar czvf artifacts/sower-linux-386.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=arm make build
tar czvf artifacts/sower-linux-arm.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=arm64 make build
tar czvf artifacts/sower-linux-arm64.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=mips make build
tar czvf artifacts/sower-linux-mips.tar.gz sower sower.toml sower-client.service sower-server.service
GOOS=linux GOARCH=mipsle make build
tar czvf artifacts/sower-linux-mipsle.tar.gz sower sower.toml sower-client.service sower-server.service
- run:
name: Build macOS Binary
command: |
GOOS=darwin GOARCH=amd64 make build
tar czvf artifacts/sower_darwin_amd64.tar.gz sower sower.toml cc.wweir.sower.plist
tar czvf artifacts/sower-darwin-amd64.tar.gz sower sower.toml cc.wweir.sower.plist
- run:
name: Build Windows Binary
command: |
GOOS=windows GOARCH=amd64 make build
tar czvf artifacts/sower_windows_amd64.tar.gz sower.exe sower.toml
tar czvf artifacts/sower-windows-amd64.tar.gz sower.exe sower.toml
GOOS=windows GOARCH=386 make build
tar czvf artifacts/sower-windows-386.tar.gz sower.exe sower.toml
- run:
name: Publish Release on GitHub
command: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test:
go vet ./...
go test ./...
build:
go build -v -ldflags \
go build -ldflags \
"-X main.version=$(shell git describe --tags) \
-X main.date=$(shell date +%Y-%m-%d)"
image:
Expand Down

0 comments on commit f001f7d

Please sign in to comment.