-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.03 KB
/
lint-docs.yml
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
name: Lint Rust Documentation
on:
pull_request:
push:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache OpenCASCADE
uses: actions/cache@v4
with:
path: |
crates/opencascade-sys/occt_build
crates/opencascade-sys/occt_source
key: opencascade-${{ runner.os }}-${{ hashFiles('**/occt_commit_hash.lock') }}
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ runner.os }}-stable-${{ hashFiles('**/Cargo.lock') }}
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --workspace