summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/.github/workflows/rustdoc_check.yml
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/.github/workflows/rustdoc_check.yml')
-rw-r--r--src/tools/rustfmt/.github/workflows/rustdoc_check.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/rustfmt/.github/workflows/rustdoc_check.yml b/src/tools/rustfmt/.github/workflows/rustdoc_check.yml
new file mode 100644
index 000000000..cd0c32189
--- /dev/null
+++ b/src/tools/rustfmt/.github/workflows/rustdoc_check.yml
@@ -0,0 +1,25 @@
+name: rustdoc check
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ rustdoc_check:
+ runs-on: ubuntu-latest
+ name: rustdoc check
+ steps:
+ - name: checkout
+ uses: actions/checkout@v3
+
+ - name: install rustup
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
+ sh rustup-init.sh -y --default-toolchain none
+ rustup target add x86_64-unknown-linux-gnu
+
+ - name: document rustfmt
+ env:
+ RUSTDOCFLAGS: --document-private-items --enable-index-page --show-type-layout --generate-link-to-definition -Zunstable-options -Dwarnings
+ run: cargo doc -Zskip-rustdoc-fingerprint --no-deps -p rustfmt-nightly -p rustfmt-config_proc_macro