-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathjustfile
More file actions
26 lines (22 loc) · 747 Bytes
/
justfile
File metadata and controls
26 lines (22 loc) · 747 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
# list recipes
default:
@just --list
# One-stop CI-ish local run
ci:
cargo fmt --all -- --check
cargo build --release --verbose
cargo test --verbose --lib --tests
cargo clippy --all-targets -- -D warnings -D clippy::dbg_macro
# Regenerate source files from ungrammar and reformat
sourcegen:
cargo clean
cargo build -p oq3_syntax --features sourcegen
cargo fmt -p oq3_syntax -p oq3_parser
_assert_empty_git_status:
@if git status --porcelain | grep .; then \
echo "Uncommitted changes found"; \
git --no-pager diff; \
exit 1; \
fi
# Check that source files are up to date (assumes a clean working tree)
check_sourcegen: _assert_empty_git_status sourcegen _assert_empty_git_status