Skip to content

Commit c0b777c

Browse files
authored
fix(ci): fix rustdoc build by scoping docsrs cfg to rustdoc only (#458)
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent 0566d13 commit c0b777c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,14 @@ jobs:
216216

217217
- name: Install Rust
218218
uses: dtolnay/rust-toolchain@nightly
219-
219+
220220
- uses: Swatinem/rust-cache@v2
221221

222222
- name: Generate documentation
223223
run: |
224224
cargo +nightly doc --no-deps -p rmcp -p rmcp-macros --all-features
225225
env:
226-
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
227-
RUSTFLAGS: --cfg docsrs
226+
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
228227

229228
release:
230229
name: Release crates

0 commit comments

Comments
 (0)