version: '3'
tasks:
dev:
cmds:
- cargo +stable watch -x "run server --force"
dev:nowatch:
cmds:
- cargo +stable run server --force
build:release:
desc: ⚡ build kurv «release»
cmds:
- cargo +stable build --release
- python check_size.py
fmt:check:
cmds:
- cargo +nightly fmt --all --check
lint:check:
cmds:
- cargo +stable clippy --workspace --all-targets --all-features
lint:
cmds:
- cargo +stable clippy --workspace --all-targets --all-features --fix --allow-staged
check:
cmds:
- task: fmt:check
- task: lint:check
fmt:
cmds:
- cargo +nightly fmt --all
build:
desc: ⚡ build kurv «debug»
cmds:
- cargo +stable build
- python check_size.py
local-ci-release:
desc: 🚀 run local ci workflow «release»
cmds:
- |
act push \
-W="./.github/workflows/ci.yml" \
-e="./.github/act-test/release.json" \
--secret-file="./.github/act-test/secrets.env" \
--pull=false
local-ci-pub:
desc: 🚀 run local ci workflow «publish»
cmds:
- |
act release \
-W="./.github/workflows/publish.yml" \
-e="./.github/act-test/publish.json" \
--secret-file="./.github/act-test/secrets.env" \
--pull=false \
--reuse