aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-22 20:24:35 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-22 20:24:35 +0800
commitd8ad761c12fdc650a5c66d7d911024763df44de9 (patch)
treec83967e2ac303a4df032ce7af6d2d6334eea7a3e /.github/workflows/ci.yml
parentfe39e74efbdcca56e0edefa5bb3cabe2dae4135a (diff)
ci: use nightly toolchain for API doc generation
Switch to nightly toolchain and add --docsrs flag to build API docs.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 4 insertions, 1 deletions
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