Skip to content

Commit d32afb4

Browse files
committed
ci: check documentation
1 parent 2ef6e23 commit d32afb4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,24 @@ jobs:
1919
- run: sudo apt-get -qq update
2020
- run: sudo apt-get install -y libxkbcommon-dev
2121
- run: cargo fmt --all -- --check
22+
23+
# Make sure there are no broken intra-doc links with and without features
24+
- run: RUSTDOCFLAGS="--deny warnings" cargo doc --no-deps --all-features
25+
- run: RUSTDOCFLAGS="--deny warnings" cargo doc --no-deps
26+
2227
- run: cargo clippy --all-features -- -Dwarnings
28+
if: matrix.rust_version != 'stable'
29+
- run: cargo clippy --all-features --all-targets -- -Dwarnings
30+
if: matrix.rust_version == 'stable'
31+
32+
# Sanity check: generic code doesn't depend on features
33+
- run: cargo check
34+
2335
- run: cargo build --all-features
2436
if: matrix.rust_version != 'stable'
2537
- run: cargo build --all-features --examples
2638
if: matrix.rust_version == 'stable'
39+
2740
- uses: actions/upload-artifact@v4
2841
with:
2942
name: reis-demo-server

0 commit comments

Comments
 (0)