Skip to content

Commit 14e12b6

Browse files
authored
Merge pull request #70 from openssh-rust/fix/building-doc-in-ci
Fix building doc in `style.yml`
2 parents 403963e + 77b50fb commit 14e12b6

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/style.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,24 @@ 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+
- uses: actions/checkout@v2
51+
- name: cargo doc
52+
uses: actions-rs/cargo@v1
53+
with:
54+
toolchain: nightly
55+
command: doc
56+
args: --no-deps --all-features
57+
env:
58+
RUSTDOCFLAGS: --cfg docsrs

0 commit comments

Comments
 (0)