Skip to content

Bump the github-actions group across 2 directories with 6 updates #361

Bump the github-actions group across 2 directories with 6 updates

Bump the github-actions group across 2 directories with 6 updates #361

Workflow file for this run

# Simple workflow for building documentation for PR testing
name: Build documentation
# On a pull request this will build the html documentation
# and create an artifact. It does this by using the cmake
# build target doc_html. Note that this requires installing a little
# more than is technically required for building the documentation in
# order to satisfy our current cmake configurations e.g. spirv-tools
on:
pull_request:
paths:
- doc/**
- .github/workflows/docs.yml
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
# Build job
build:
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.9
- name: Install apt package
run: |
sudo apt-get update
sudo apt-get install -y doxygen virtualenv graphviz
- name: Install prerequisites
run: python -m pip install -r doc/requirements.txt
- name: Build Documentation
working-directory: ${{github.workspace}}
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_CL_ENABLE_OFFLINE_KERNEL_TESTS=OFF -DOCL_EXTENSION_cl_khr_il_program=OFF -Bbuild_doc
cmake --build build_doc --target doc_html
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ${{github.workspace}}/build_doc/doc/html