Skip to content

Commit

Permalink
compile for linux, macOS and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nunnatsa committed Jul 10, 2022
1 parent 83055b0 commit 54d6bc1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
build:
go build -o ginkgo-linter ./cmd
go build -o ginkgo-linter ./cmd

build-for-windows:
GOOS=windows GOARCH=amd64 go build -o bin/ginkgo-linter-amd64.exe ./cmd

build-for-mac:
GOOS=darwin GOARCH=amd64 go build -o bin/ginkgo-linter-amd64-darwin ./cmd

build-for-linux:
GOOS=linux GOARCH=amd64 go build -o bin/ginkgo-linter-amd64-linux ./cmd
GOOS=linux GOARCH=386 go build -o bin/ginkgo-linter-386-linux ./cmd

build-all: build build-for-linux build-for-mac build-for-windows

0 comments on commit 54d6bc1

Please sign in to comment.