Skip to content

build(deps-dev): bump the uv-pip group with 2 updates #836

build(deps-dev): bump the uv-pip group with 2 updates

build(deps-dev): bump the uv-pip group with 2 updates #836

Workflow file for this run

name: Docs
on:
push:
branches: [main]
paths:
- docs/**
- .github/workflows/build-docs.yml
- cpp-linter/src/**
- '*.md'
- '*/*.md'
pull_request:
branches: [main]
paths:
- docs/**
- .github/workflows/build-docs.yml
- cpp-linter/src/**
- '*.md'
- '*/*.md'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
cache-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false
- run: rustup update --no-self-update
- name: Cache .cargo locked resources
uses: actions/cache@v6.1.0
with:
path: ~/.cargo
key: ${{ runner.os }}-docs-cargo-${{ hashFiles('Cargo.lock') }}
- run: cargo fetch
seed-build-script:
name: Pre-seed static binaries' versions
uses: ./.github/workflows/pre-seed-versions.yml
build-mkdocs:
runs-on: ubuntu-latest
needs: [cache-deps, seed-build-script]
steps:
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false
- name: Cache .cargo locked resources
uses: actions/cache/restore@v6.1.0
with:
path: ~/.cargo
key: ${{ runner.os }}-docs-cargo-${{ hashFiles('Cargo.lock') }}
- name: Install uv
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@732870f031d2fb36309d0deaf36abcc704a7be65 # v1.20.1
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install nur
run: cargo binstall -y nur
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Restore build script seed
uses: actions/download-artifact@v8
with:
name: ${{ needs.seed-build-script.outputs.artifact-name }}
path: clang-tools-manager
- name: Build docs
run: nur docs --build
- name: Upload docs build as artifact
uses: actions/upload-pages-artifact@v5
with:
name: cpp-linter-docs
path: docs/site
build-rustdoc:
runs-on: ubuntu-latest
needs: [cache-deps, seed-build-script]
steps:
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false
- run: rustup update --no-self-update
- name: Cache .cargo locked resources
uses: actions/cache/restore@v6.1.0
with:
path: ~/.cargo
key: ${{ runner.os }}-docs-cargo-${{ hashFiles('Cargo.lock') }}
- name: Install uv
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@732870f031d2fb36309d0deaf36abcc704a7be65 # v1.20.1
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install nur
run: cargo binstall -y nur
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Restore build script seed
uses: actions/download-artifact@v8
with:
name: ${{ needs.seed-build-script.outputs.artifact-name }}
path: clang-tools-manager
- run: nur docs rs
- name: upload rustdoc build as artifact
uses: actions/upload-artifact@v7
with:
path: target/doc
name: cpp-linter-api_docs
deploy:
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
needs: [build-mkdocs]
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v5
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifact_name: cpp-linter-docs