-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (32 loc) · 947 Bytes
/
justfile
File metadata and controls
46 lines (32 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
default:
@just --list
format: rust-format site-format
@:
lint: rust-lint site-check flake-check
cargo run --quiet --example generate-man -- man
git diff --exit-code -- man
test -z "$(git ls-files --others --exclude-standard -- man)" || (git ls-files --others --exclude-standard -- man && exit 1)
test:
cargo test --all
build:
cargo build --release
rust-format:
cargo fmt --all -- --check
rust-lint:
cargo clippy --all-targets -- -D warnings
site-install:
cd site && pnpm install --frozen-lockfile
site-check: site-install
cd site && pnpm check
site-format: site-install
cd site && pnpm format:check
site-build: site-install
cd site && pnpm build
flake-check:
nix flake check --no-build
build-target target:
cargo build --release --target {{target}}
ci: format lint test
@:
release version *args:
nix develop .#ci --command ./scripts/release.sh {{version}} {{args}}