yr/justfile
Tim Hårek Andreassen eb8e643804
build: Simplify
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 20:13:01 +02:00

33 lines
528 B
Makefile

builddir := "./build"
default:
just --list
dev +args='--help':
go run main.go {{args}}
test:
go test ./...
tidy:
go mod tidy
vet:
go vet ./...
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}}
cp {{builddir}}/yr* yr-{{version}}/
tar czf yr-{{version}}-{{os}}-{{arch}}.tar.gz yr-{{version}}
hut git artifact upload --rev {{tag}} yr-{{version}}-{{os}}-{{arch}}.tar.gz