-
Notifications
You must be signed in to change notification settings - Fork 10
/
justfile
50 lines (38 loc) · 1006 Bytes
/
justfile
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
47
48
49
50
# Documentation targets
mod doc
default:
@just --list
# Auto-format the source tree
fmt:
treefmt
alias f := fmt
# Run omnix-cli locally
watch *ARGS:
bacon --job run -- -- {{ ARGS }}
run *ARGS:
cargo run -p omnix-cli {{ ARGS }}
alias w := watch
# Run CI locally
[group('ci')]
ci:
nix --accept-flake-config run . ci
# Run CI locally in devShell (using cargo)
[group('ci')]
ci-cargo:
cargo run -p omnix-cli -- ci run
# Run CI locally in devShell (using cargo) on a simple flake with subflakes
[group('ci')]
ci-cargo-ext:
cargo run -p omnix-cli -- ci run github:srid/nixos-unified
# Do clippy checks for all crates
[group('ci-steps')]
clippy:
cargo clippy --release --locked --all-targets --all-features --workspace -- --deny warnings
# Build cargo doc for all crates
[group('ci-steps')]
cargo-doc:
cargo doc --release --all-features --workspace
# Run cargo test for all crates
[group('ci-steps')]
cargo-test:
cargo test --release --all-features --workspace