generated from alpenlabs/rust-template-workspace
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 994 Bytes
/
docs.yml
File metadata and controls
43 lines (36 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Docs
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
permissions: {}
jobs:
docs:
name: Generate docs
strategy:
matrix:
include:
- runner: ubuntu-24.04
- runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- name: Rust cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
with:
cache-on-failure: true
- name: Check docs leaving the dependencies out
env:
RUSTDOCFLAGS: -A rustdoc::private-doc-tests -D warnings
run: cargo doc --no-deps