From b275959c267daf4986e06269cab9c7ac97d8900a Mon Sep 17 00:00:00 2001 From: taoky Date: Sat, 24 Aug 2024 16:43:01 +0800 Subject: [PATCH] Add Makefile for check/release --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d7a9d2c --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: check release + +check: + cargo fmt --check + cargo clippy + cargo test + +release: +ifndef version + $(error version is not set. Usage: make release version=) +endif + cargo set-version $(version) + git tag $(version)