From d8ad761c12fdc650a5c66d7d911024763df44de9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 22 Jul 2026 20:24:35 +0800 Subject: ci: use nightly toolchain for API doc generation Switch to nightly toolchain and add --docsrs flag to build API docs. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a6a9a6..563e8e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,8 +82,11 @@ jobs: uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Install nightly toolchain + run: rustup toolchain install nightly + - name: Build API docs - run: cargo run --manifest-path .run/Cargo.toml --bin deploy-api-docs + run: cargo +nightly run --manifest-path .run/Cargo.toml --bin deploy-api-docs -- --docsrs - name: Install cargo-llvm-cov run: cargo install cargo-llvm-cov -- cgit