2020-11-04 00:48:01 +00:00
|
|
|
name: doc
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2022-05-30 00:58:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-11-04 00:48:01 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-06-03 15:43:41 +00:00
|
|
|
# Use Ubuntu 20.04 because doxygen 1.8.13 from Ubuntu 18.04 is broken.
|
2021-06-03 15:28:02 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-04 00:48:01 +00:00
|
|
|
|
|
|
|
steps:
|
2023-10-01 16:49:05 +00:00
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
2020-11-04 00:48:01 +00:00
|
|
|
|
2023-02-12 15:46:50 +00:00
|
|
|
- name: Add ubuntu mirrors
|
|
|
|
run: |
|
|
|
|
# Github Actions caching proxy is at times unreliable
|
|
|
|
# see https://github.com/actions/runner-images/issues/7048
|
|
|
|
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
|
|
|
|
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
|
|
|
|
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
|
|
|
|
|
2020-11-04 00:48:01 +00:00
|
|
|
- name: Create Build Environment
|
|
|
|
run: |
|
2021-06-26 13:29:53 +00:00
|
|
|
sudo apt update
|
2021-06-03 16:10:07 +00:00
|
|
|
sudo apt install doxygen python3-virtualenv
|
2024-05-27 15:08:07 +00:00
|
|
|
sudo npm install -g sass
|
2020-11-04 00:48:01 +00:00
|
|
|
cmake -E make_directory ${{runner.workspace}}/build
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2020-11-07 16:09:01 +00:00
|
|
|
env:
|
|
|
|
KEY: ${{secrets.KEY}}
|
2020-11-07 15:20:51 +00:00
|
|
|
run: $GITHUB_WORKSPACE/support/build-docs.py
|