Skip to content

Commit

Permalink
refactor(ci): separate rustdoc to different job
Browse files Browse the repository at this point in the history
It compiles in `--release` so cache is irrelevant.
  • Loading branch information
Gilad Chase committed Dec 19, 2024
1 parent 5bbb6e4 commit 4cfe28d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ jobs:
- name: Run Machete (detect unused dependencies)
run: cargo machete

rustdoc:
runs-on: starkware-ubuntu-latest-medium
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: cargo doc --release --document-private-items --no-deps
env:
# Note that cargo doc requires RUSTDOCFLAGS, not RUSTFLAGS
RUSTDOCFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

run-workspace-tests:
runs-on: starkware-ubuntu-latest-medium
steps:
Expand Down

0 comments on commit 4cfe28d

Please sign in to comment.