-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (19 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
build:
GOOS=darwin GOARCH=amd64 go build -ldflags='-s -w' -o ./bin/gofile_darwin_amd64; \
GOOS=darwin GOARCH=arm64 go build -ldflags='-s -w' -o ./bin/gofile_darwin_arm64; \
GOOS=linux GOARCH=386 go build -ldflags='-s -w' -o ./bin/gofile_linux_386; \
GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' -o ./bin/gofile_linux_amd64; \
GOOS=linux GOARCH=arm64 go build -ldflags='-s -w' -o ./bin/gofile_linux_arm64; \
GOOS=windows GOARCH=386 go build -ldflags='-s -w' -o ./bin/gofile_windows_386.exe; \
GOOS=windows GOARCH=amd64 go build -ldflags='-s -w' -o ./bin/gofile_windows_amd64.exe; \
GOOS=windows GOARCH=arm64 go build -ldflags='-s -w' -o ./bin/gofile_windows_arm64.exe; \
check:
gofmt -d .; \
goimports -d .; \
golint . ; \
go vet . ; \
golangci-lint run; \
gosec ./...; \
release:
goreleaser release --snapshot --clean
.PHONY: build check release