aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/ci/Makefile b/ci/Makefile
index 9f18c60..9a76fdc 100644
--- a/ci/Makefile
+++ b/ci/Makefile
@@ -1,4 +1,4 @@
-all: build build-examples check-fmt check-clippy check-tests check-examples run-examples
+all: build build-examples check-fmt check-clippy check-tests check-examples check-readme run-examples
build:
cargo build
@@ -18,6 +18,11 @@ check-tests:
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