Skip to content

Commit

Permalink
Build all platforms in CI (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Sep 18, 2019
1 parent 1056b14 commit 65dfe2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
dist/
bin/
coverage.txt
stripe
./stripe
./stripe-darwin
./stripe-linux
./stripe-windows.exe
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ go-mod-tidy:
.PHONY: go-mod-tidy

# Run all the tests and code checks
ci: build test lint go-mod-tidy
ci: build-all-platforms test lint go-mod-tidy
.PHONY: ci

# Build a beta version of stripe
Expand All @@ -53,6 +53,14 @@ build:
go build -o stripe cmd/stripe/main.go
.PHONY: build

# Build a beta version of stripe for all support platforms
build-all-platforms:
go generate ./...
env GOOS=darwin go build -o stripe-darwin cmd/stripe/main.go
env GOOS=linux go build -o stripe-linux cmd/stripe/main.go
env GOOS=windows go build -o stripe-windows.exe cmd/stripe/main.go
.PHONY: build

# Show to-do items per file
todo:
@grep \
Expand Down

0 comments on commit 65dfe2b

Please sign in to comment.