Skip to content

Commit 9b002a0

Browse files
authored
fix(ci): only pass --cfg docsrs to our own packages (#304)
1 parent 54216d6 commit 9b002a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
RUSTFLAGS: -Dwarnings
12-
RUSTDOCFLAGS: -Dwarnings
1312
RUST_BACKTRACE: 1
1413
# note: MSRV now tracked in `rust-toolchain.toml`
1514

@@ -54,14 +53,15 @@ jobs:
5453
docs:
5554
needs: build
5655
runs-on: ubuntu-latest
57-
env:
58-
RUSTDOCFLAGS: -Dwarnings --cfg docsrs
5956
steps:
6057
- uses: actions/checkout@v4
6158
- run: rustup toolchain install nightly
6259
- run: rustup override set nightly
6360
- run: rustup show active-toolchain -v
64-
- run: cargo doc --all-features
61+
# Serde 1.0.227 fails to build with `--cfg docsrs`, only pass it to our own packages
62+
- run: cargo rustdoc -p clickhouse-derive -- -D warnings --cfg docsrs
63+
- run: cargo rustdoc -p clickhouse-types -- -D warnings --cfg docsrs
64+
- run: cargo rustdoc -p clickhouse -- -D warnings --cfg docsrs
6565

6666
test:
6767
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)