From 4cfe28d6a6d7f60f1c10a6d0463244e9e7161f99 Mon Sep 17 00:00:00 2001 From: Gilad Chase Date: Thu, 19 Dec 2024 15:08:27 +0200 Subject: [PATCH] refactor(ci): separate rustdoc to different job It compiles in `--release` so cache is irrelevant. --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc047166b41..9ef12438f3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: