| 1 |
# SPDX-License-Identifier: BSD-3-Clause |
| 2 |
# Copyright (c) Contributors to the OpenEXR Project. |
| 3 |
# |
| 4 |
# GitHub Actions workflow file |
| 5 |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions |
| 6 |
|
| 7 |
name: Website |
| 8 |
|
| 9 |
# Run only on changes in the "website" directory or workflow file. |
| 10 |
# Skip the release branches, since the website is built from main. |
| 11 |
|
| 12 |
on: |
| 13 |
|
| 14 |
push: |
| 15 |
branches:-ignore: |
| 16 |
- RB-* |
| 17 |
paths: |
| 18 |
- 'website/**' |
| 19 |
- '.github/workflows/website_workflow.yml' |
| 20 |
|
| 21 |
pull_request: |
| 22 |
branches:-ignore: |
| 23 |
- RB-* |
| 24 |
paths: |
| 25 |
- 'website/**' |
| 26 |
- '.github/workflows/website_workflow.yml' |
| 27 |
|
| 28 |
permissions: |
| 29 |
contents: read |
| 30 |
|
| 31 |
jobs: |
| 32 |
|
| 33 |
Website: |
| 34 |
|
| 35 |
# Build the website, using a process that mimics the readthedoc build. |
| 36 |
|
| 37 |
name: 'Website' |
| 38 |
runs-on: ubuntu-latest |
| 39 |
|
| 40 |
steps: |
| 41 |
- name: Checkout |
| 42 |
uses: actions/checkout@v3 |
| 43 |
- name: Create build directory |
| 44 |
run: mkdir _build |
| 45 |
- name: Install doxygen |
| 46 |
run: sudo apt-get install -y doxygen |
| 47 |
- name: Install sphinx requirements |
| 48 |
run: pip3 install -r website/requirements.txt |
| 49 |
- name: Configure |
| 50 |
run: cmake .. -DBUILD_WEBSITE='ON' |
| 51 |
working-directory: _build |
| 52 |
- name: Build |
| 53 |
run: | |
| 54 |
cmake --build . \ |
| 55 |
--target website \ |
| 56 |
--config Release |
| 57 |
working-directory: _build |
| 58 |
|