Skip to content

DutyTracker MegaPR #351

DutyTracker MegaPR

DutyTracker MegaPR #351

Workflow file for this run

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 Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- 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