aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci/Makefile
blob: b433ed20f9be17a2e1c308ce7df2b1aba9446998 (plain) (blame)
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
all: build build-examples check-fmt check-clippy check-tests check-examples check-readme run-examples

build:
	cargo build

build-examples:
	cargo build --examples

check-fmt:
	cargo fmt --check

check-clippy:
	cargo clippy -- -Dwarnings -Aclippy::new_without_default

check-tests:
	cargo test

check-examples:
	cargo test --examples

check-readme:
	awk '/^```rust$$/,/^```$$/ { if (!($$1 ~ "^```")) { print } }' ../README.md > ../examples/readme.rs
	cargo run --example readme
	rm -f ../examples/readme.rs

run-examples:
	cargo run --example fib
	cargo run --example add
	cargo run --example tiny_vm
	cargo run --example tiny_vm jit
	cargo run --example bf