Skip to content

Commit

Permalink
Makefile: Disable CGO so to build a static binary
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitianux committed Mar 31, 2023
1 parent 35dc58c commit 71f8458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all:
go build -o mirrorselect main.go
CGO_ENABLED=0 go build -o mirrorselect main.go

ci: all
GOOS=dragonfly GOARCH=amd64 \
CGO_ENABLED=0 GOOS=dragonfly GOARCH=amd64 \
go build -o mirrorselect main.go
GOOS=freebsd GOARCH=amd64 \
CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 \
go build -o mirrorselect main.go

clean:
Expand Down

0 comments on commit 71f8458

Please sign in to comment.