-
Notifications
You must be signed in to change notification settings - Fork 4
/
Justfile
33 lines (24 loc) · 891 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
APP_NAME := "capture"
format:
@gofmt -w ./
format-check:
@gofmt -l ./
test:
@go test \
-v \
-timeout 30s \
github.com/bluewave-labs/capture/test
lint:
@golangci-lint run
build:
@go build -o dist/capture ./cmd/capture/
build-all: build-linux build-macos build-windows
build-linux:
@GOOS=linux GOARCH=amd64 go build -o dist/linux/{{APP_NAME}}-linux-amd64 ./cmd/capture
@GOOS=linux GOARCH=arm64 go build -o dist/linux/{{APP_NAME}}-linux-arm64 ./cmd/capture
build-macos:
@GOOS=darwin GOARCH=amd64 go build -o dist/darwin/{{APP_NAME}}-darwin-amd64 ./cmd/capture
@GOOS=darwin GOARCH=arm64 go build -o dist/darwin/{{APP_NAME}}-darwin-arm64 ./cmd/capture
build-windows:
@GOOS=windows GOARCH=amd64 go build -o dist/windows/{{APP_NAME}}-windows-amd64.exe ./cmd/capture
@GOOS=windows GOARCH=arm64 go build -o dist/windows/{{APP_NAME}}-windows-arm64.exe ./cmd/capture