-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.14 KB
/
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
40
41
42
43
44
45
46
47
48
49
name: Docs
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
permissions: {}
jobs:
docs:
name: Generate docs
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-11-01
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install SP1 Toolchain
run: |
curl -fsSL --proto '=https' --tlsv1.2 https://sp1.succinct.xyz | bash && ~/.sp1/bin/sp1up
export PATH=~/.sp1/bin:$PATH
cargo prove --version
- name: Install sqlx-cli
run: cargo install sqlx-cli --locked
- name: Run db migrations
run: make migrate
- name: Check docs leaving the dependencies out
run: cargo doc --workspace --no-deps
env:
RUSTDOCFLAGS: --show-type-layout --enable-index-page -Zunstable-options -A rustdoc::private-doc-tests -D warnings
DATABASE_URL: sqlite://./operator.db
SKIP_GUEST_BUILD: 1