-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (31 loc) · 738 Bytes
/
justfile
File metadata and controls
32 lines (31 loc) · 738 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
default:
@just --list
fmt:
@cargo fmt
clippy:
@cargo clippy -q
refresh:
@echo "invoking ins_adder..."
@cargo run --package "pasm" -q --features "refresh" -- --supported-instructions-raw > .instructions
@cargo run --package "ins_adder" -q -- .instructions
@rm .instructions
@mv ins_switch.rs src/shr/ins_switch.rs
install_wtests:
@just refresh
@just test_wins
@just install
install:
cargo install -q --path .
# this might take some time. Requires NASM binary in $PATH
test: clean refresh clippy_fmt test_winstructions
clippy_fmt:
@echo "running clippy..."
@cargo clippy -q
@echo "running fmt..."
@cargo fmt
clean:
@cargo clean
# Requires NASM binary in $PATH
[working-directory: 'tests']
test_winstructions:
@./test.sh