summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/docs.yml
blob: 1f6aa78f1d55a50e712f97d2ebda9ab1c00afc4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build documentation

on:
  push:
    paths:
    - '.github/**'
    - 'docs/**'
  pull_request:
    paths:
    - '.github/**'
    - 'docs/**'

jobs:
  build-docs:
    runs-on: ubuntu-latest
    steps:
    - 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