-
-
Notifications
You must be signed in to change notification settings - Fork 91
30 lines (28 loc) · 748 Bytes
/
Copy pathmacro_docs.yml
File metadata and controls
30 lines (28 loc) · 748 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
name: macro docs
on:
pull_request:
paths:
- "guide/src/macros/*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-bindings:
name: Lint bindings
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: nightly
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ env.RUST_CACHE_PREFIX }}
- name: Macro docs
run: tools/update_lib_docs.sh && git diff --exit-code crates/macros/src/lib.rs