Skip to content

Commit c0ab284

Browse files
committed
Fix building doc in style.yml
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 403963e commit c0ab284

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/style.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,25 @@ jobs:
3535
with:
3636
command: fmt
3737
args: --check
38-
- name: cargo doc
39-
uses: actions-rs/cargo@v1
40-
if: always()
41-
with:
42-
command: doc
43-
args: --no-deps --all-features
4438
- name: cargo clippy
4539
uses: actions-rs/clippy-check@v1
4640
if: always()
4741
with:
4842
token: ${{ secrets.GITHUB_TOKEN }}
43+
doc:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: nightly
50+
components: rustfmt, clippy
51+
- uses: actions/checkout@v2
52+
- name: cargo doc
53+
uses: actions-rs/cargo@v1
54+
with:
55+
toolchain: nightly
56+
command: doc
57+
args: --no-deps --all-features
58+
env:
59+
RUSTDOCFLAGS: --cfg docsrs

0 commit comments

Comments
 (0)