feat(makefile): makefile build & install + progress on cpp and py
C++ / fmt (pull_request) Successful in 5s
JS/TS / fmt & lint (pull_request) Successful in 14s
Python / fmt & lint (pull_request) Successful in 43s
C++ / build & lint (pull_request) Failing after 2m26s
Python / test & nuitka build (pull_request) Successful in 1m51s
Rust / build, clippy & fmt (pull_request) Failing after 4m39s

This commit is contained in:
2026-10-23 04:59:30 +02:00
parent c215b52903
commit 9c29e3201d
+36
View File
@@ -0,0 +1,36 @@
BUILD ?= cmake -B build -G Ninja
INSTALL ?= $(BUILD) \
&& ninja -C build \
&& sudo ninja -C build install
.DEFAULT_GOAL := help
help:
@echo "build cmake builds into build directory"
build:
$(BUILD)
install:
$(INSTALL)
# TODO: Anything below is not ready
cpp-fmt:
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \
-not -path './build/*' \
-exec clang-format -i --style=file {} +
# cpp-lint needs adjustments in ci and here
py-fmt:
ruff format --check
py-lint:
ruff check ./cli
py-check:
basedpyright
py-test:
python -m pytest ./cli/src/tests/ -v