Skip to content

[SYCL][Doc] Add SPV_INTEL_predicated_io extension (#20158) #4312

[SYCL][Doc] Add SPV_INTEL_predicated_io extension (#20158)

[SYCL][Doc] Add SPV_INTEL_predicated_io extension (#20158) #4312

Workflow file for this run

name: Generate documentation
on:
schedule:
- cron: 0 1 * * *
pull_request:
branches:
- sycl
paths:
- '.github/workflows/sycl-docs.yml'
- 'clang/docs/**'
- 'sycl/doc/**'
- 'devops/benchmarks/scripts/html/**'
push:
branches:
- sycl
paths:
- '.github/workflows/sycl-docs.yml'
- 'clang/docs/**'
- 'sycl/doc/**'
- 'devops/benchmarks/scripts/html/**'
workflow_dispatch:
inputs:
update_gh_pages:
type: choice
description: Update Github Pages
options:
- true
- false
default: true
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'intel/llvm'
steps:
- uses: actions/checkout@v4
with:
path: repo
- name: Install deps
run: |
sudo apt-get install -y graphviz ssh ninja-build libhwloc-dev
sudo pip3 install -r repo/llvm/docs/requirements.txt
- name: Build Docs
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
python $GITHUB_WORKSPACE/repo/buildbot/configure.py -w $GITHUB_WORKSPACE \
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs
cmake --build . --target docs-sycl-html
cmake --build . --target docs-clang-html
# Copy the generated docs to a separate directory for uploading.
mkdir $GITHUB_WORKSPACE/install_docs
cd $GITHUB_WORKSPACE/install_docs
mkdir clang
mv $GITHUB_WORKSPACE/build/tools/sycl/doc/html/* .
mv $GITHUB_WORKSPACE/build/tools/clang/docs/html/* clang/
cp -r $GITHUB_WORKSPACE/repo/devops/scripts/benchmarks/html benchmarks
touch .nojekyll
# Update benchmarking dashboard configuration
cat << EOF > benchmarks/config.js
remoteDataUrl = 'https://raw.githubusercontent.com/intel/llvm-ci-perf-results/refs/heads/unify-ci/';
defaultCompareNames = ["Baseline_PVC_L0"];
EOF
# Upload the generated docs as an artifact and deploy to GitHub Pages.
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./install_docs
- name: Deploy to GitHub Pages
if: ${{ github.event_name == 'push' || inputs.update_gh_pages == 'true' }}
uses: actions/deploy-pages@v4