]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/.github/workflows/rustdoc_check.yml
Auto merge of #98097 - lqd:const-alloc-hash, r=oli-obk
[rust.git] / src / tools / rustfmt / .github / workflows / rustdoc_check.yml
1 name: rustdoc check
2 on:
3   push:
4     branches:
5       - master
6   pull_request:
7
8 jobs:
9   rustdoc_check:
10     runs-on: ubuntu-latest
11     name: rustdoc check
12     steps:
13     - name: checkout
14       uses: actions/checkout@v3
15
16     - name: install rustup
17       run: |
18         curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
19         sh rustup-init.sh -y --default-toolchain none
20         rustup target add x86_64-unknown-linux-gnu
21
22     - name: document rustfmt
23       env:
24         RUSTDOCFLAGS: --document-private-items --enable-index-page --show-type-layout --generate-link-to-definition -Zunstable-options -Dwarnings
25       run: cargo doc -Zskip-rustdoc-fingerprint --no-deps -p rustfmt-nightly -p rustfmt-config_proc_macro