-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
59 lines (47 loc) · 1.37 KB
/
justfile
File metadata and controls
59 lines (47 loc) · 1.37 KB
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
51
52
53
54
55
56
57
58
59
# Run clippy with all warnings
clippy:
cargo clippy
# Run clippy with auto-fix
clippy-fix:
cargo clippy --fix --allow-dirty
# Format code
fmt:
cargo fmt
# Check formatting
fmt-check:
cargo fmt -- --check
# Run tests
test:
cargo test
# Build release
build:
cargo build --release
# Run the app
run:
cargo run
# Run with local config
run-local:
cargo run -- --config ./radioboat.toml
# Run in small mode
run-small:
cargo run -- --ui-size small
# Check warnings and cross-compile for all target platforms
check-all:
cargo check --target x86_64-unknown-linux-gnu 2>&1
cargo check --target aarch64-unknown-linux-gnu 2>&1
cargo check --target x86_64-apple-darwin 2>&1
cargo check --target aarch64-apple-darwin 2>&1
# Clippy with warnings for all target platforms
clippy-all:
cargo clippy 2>&1
cargo clippy --target x86_64-unknown-linux-gnu 2>&1
cargo clippy --target aarch64-unknown-linux-gnu 2>&1
cargo clippy --target x86_64-apple-darwin 2>&1
cargo clippy --target aarch64-apple-darwin 2>&1
# Build for all target platforms
build-all:
cargo zigbuild --release --target x86_64-unknown-linux-gnu 2>&1
cargo zigbuild --release --target aarch64-unknown-linux-gnu 2>&1
cargo zigbuild --release --target x86_64-apple-darwin 2>&1
cargo zigbuild --release --target aarch64-apple-darwin 2>&1
all: build clippy fmt test