Skip to content

Optimize CI workflows with concurrency and caching #2004

Optimize CI workflows with concurrency and caching

Optimize CI workflows with concurrency and caching #2004

Workflow file for this run

name: Windows Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
sphinx-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --frozen
- name: Build
shell: cmd
working-directory: ./docs
run: |
set SPHINXBUILD=uv run sphinx-build
set SPHINXOPTS=-j auto
make.bat html