Skip to content

Commit 58e6232

Browse files
authored
docs(contracts): add docs.rs metadata and workflow verification (#224)
1 parent 4f78bf9 commit 58e6232

7 files changed

Lines changed: 114 additions & 147 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Contracts Docs
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- 'contracts/**'
8+
- '.github/workflows/contracts-docs.yml'
9+
push:
10+
branches: [main]
11+
paths:
12+
- 'contracts/**'
13+
- '.github/workflows/contracts-docs.yml'
14+
15+
concurrency:
16+
group: contracts-docs-${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
docs:
24+
name: Contracts Docs Build & Verification
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: contracts
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Install Rust toolchain
34+
uses: dtolnay/rust-toolchain@stable
35+
with:
36+
targets: wasm32-unknown-unknown
37+
38+
- name: Cache cargo artifacts
39+
uses: Swatinem/rust-cache@v2
40+
with:
41+
workspaces: contracts
42+
43+
- name: cargo doc (verify clean build with no broken links)
44+
env:
45+
RUSTDOCFLAGS: -D warnings
46+
run: cargo doc --locked --no-deps --workspace

0 commit comments

Comments
 (0)