2021-10-21 17:46:52 +02:00
|
|
|
name: Build documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2021-10-23 20:48:05 +02:00
|
|
|
- '.github/**'
|
2021-10-21 17:46:52 +02:00
|
|
|
- 'docs/**'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-23 20:48:05 +02:00
|
|
|
- '.github/**'
|
2021-10-21 17:46:52 +02:00
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-10-23 20:48:05 +02:00
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y librsvg2-bin latexmk python3-pip python3-sphinx texlive texlive-formats-extra texlive-science
|
|
|
|
pip3 install sphinxcontrib-svg2pdfconverter
|
|
|
|
- name: Build HTML
|
|
|
|
run: make -C docs html
|
|
|
|
- name: Build PDF
|
|
|
|
run: make -C docs latexpdf
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: mame-docs-${{ github.sha }}
|
|
|
|
path: |
|
|
|
|
docs/build/html
|
|
|
|
docs/build/latex/MAME.pdf
|