# Copyright 2021-2026, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

name: Docs check

permissions: read-all

on:
  push:
    paths:
      - "docs/**"
  pull_request:
    paths:
      - "docs/**"
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  linux-build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

    - name: Check environment
      run: |
        cat /proc/cpuinfo

    - name: Install dependencies
      run: |
        echo "APT::Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-retries
        sudo apt-get update
        sudo apt-get install python3-docutils

    - name: Check docs build
      run: |
        cd docs
        ./build.sh

