This repository was archived by the owner on Oct 28, 2025. It is now read-only.
Bump cc from 1.2.39 to 1.2.40 (#248) #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| generate-documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-docs-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Build documentation | |
| # the `--enable-index-page` flag creates an index.html file at the root of the docs | |
| # the `-Zunstable-options` flag is needed to use `--enable-index-page` | |
| # see https://github.com/rust-lang/cargo/issues/8229 for why `nightly` is needed | |
| run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps --workspace | |
| - name: Upload documentation files as artifact | |
| id: docs-artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: target/doc | |
| retention-days: 10 | |
| deploy-docs-pages: | |
| permissions: | |
| id-token: write # Needed for OIDC authentication | |
| pages: write # this permission is needed for deploying into Github Pages | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.docs-artifact.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: generate-documentation | |
| steps: | |
| - name: Deploy to Documentation to GitHub Pages | |
| id: docs-artifact | |
| uses: actions/deploy-pages@v4 |