Update release workflow to use Makefile for building and packaging; add smoke test step

This commit is contained in:
Felix Rudat
2026-01-27 10:44:50 +01:00
parent 2ed361698e
commit d8f37c6e70
2 changed files with 12 additions and 4 deletions
+9 -2
View File
@@ -1,4 +1,4 @@
.PHONY: setup run build clean
.PHONY: setup run build smoke clean
setup:
uv venv
@@ -8,7 +8,14 @@ run:
uv run python scripts/planka_cli.py status
build:
uv run pyinstaller --onefile --name planka-cli scripts/planka_cli.py
uv run pyinstaller --onefile --name planka-cli --collect-all plankapy scripts/planka_cli.py
smoke: build
@tmp_home="$$(mktemp -d)"; \
env -i PATH="/usr/bin:/bin:/usr/sbin:/sbin" HOME="$$tmp_home" \
PYTHONNOUSERSITE=1 PYTHONPATH= PYTHONHOME= \
./dist/planka-cli --help; \
rm -rf "$$tmp_home"
clean:
rm -rf dist build *.spec __pycache__ scripts/__pycache__