-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (35 loc) · 911 Bytes
/
docs.yml
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
name: Docs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
doc:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run cargo doc
run: cargo doc --workspace --verbose --no-deps --features=all
- name: Check READMEs
run: |
cargo install cargo-rdme
return=true
for dir in rustsat tools cadical kissat minisat glucose ipasir capi pyapi; do
cd ${dir}
if ! cargo rdme --check; then
echo "failed for ${dir}"
return=false
fi
cd ..
done
${return}