2022-12-18 21:10:50 +05:30
|
|
|
check: ## Check for syntax errors on all workspaces
|
|
|
|
cargo check --workspace --tests --all-features
|
|
|
|
|
2022-12-18 21:41:38 +05:30
|
|
|
ci-deploy: ## Deploy from CI/CD. Only call from within CI
|
|
|
|
@if [ "${CI}" != "woodpecker" ]; \
|
|
|
|
then echo "Only call from within CI. Will re-write your local Git configuration. To override, set export CI=woodpecker"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
|
|
|
|
git config --global user.name "${CI_COMMIT_AUTHOR}"
|
2022-12-18 22:35:55 +05:30
|
|
|
find
|
2022-12-18 21:41:38 +05:30
|
|
|
./scripts/ci.sh --init "$$GITEA_WRITE_DEPLOY_KEY"
|
2022-12-18 22:35:55 +05:30
|
|
|
./scripts/ci.sh --deploy librepages dist "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>" ${LIBREPAGES_DEPLOY_SECRET} librepages
|
2022-12-18 21:10:50 +05:30
|
|
|
|
|
|
|
lint: ## Lint codebase
|
|
|
|
cargo fmt -v --all -- --emit files
|
|
|
|
cargo clippy --workspace --tests --all-features
|
|
|
|
|
2022-12-18 21:41:38 +05:30
|
|
|
serve: ## Serve config utility website
|
2022-12-18 21:10:50 +05:30
|
|
|
trunk serve --port=7001
|
|
|
|
|
2022-12-18 21:41:38 +05:30
|
|
|
release: ## Build config utility
|
2022-12-18 21:10:50 +05:30
|
|
|
trunk build --release
|
2022-12-18 21:41:38 +05:30
|
|
|
|
|
|
|
help: ## Prints help for targets with comments
|
|
|
|
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|