2024-10-03 17:32:53 +00:00
|
|
|
builddir := "./build"
|
|
|
|
|
2024-09-24 20:08:08 +00:00
|
|
|
default:
|
|
|
|
just --list
|
|
|
|
|
2024-10-02 17:07:15 +00:00
|
|
|
dev +args='--help':
|
|
|
|
go run main.go {{args}}
|
2024-09-24 20:01:20 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
go test ./...
|
|
|
|
|
|
|
|
tidy:
|
|
|
|
go mod tidy
|
2024-10-03 14:05:18 +00:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet ./...
|
2024-10-03 17:32:53 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f build/*
|
|
|
|
rm -rf yr-*
|
|
|
|
rm -f yr-*.tar.gz
|
|
|
|
|
|
|
|
build:
|
|
|
|
go build -o {{builddir}}/
|
|
|
|
|
|
|
|
build-release tag version os arch:
|
|
|
|
GOOS="{{os}}" GOARCH="{{arch}}" just build
|
|
|
|
|
|
|
|
mkdir -p yr-{{version}}
|
2024-10-03 18:13:01 +00:00
|
|
|
cp {{builddir}}/yr* yr-{{version}}/
|
2024-10-03 17:32:53 +00:00
|
|
|
|
|
|
|
tar czf yr-{{version}}-{{os}}-{{arch}}.tar.gz yr-{{version}}
|
|
|
|
hut git artifact upload --rev {{tag}} yr-{{version}}-{{os}}-{{arch}}.tar.gz
|