blob: 17506731fd6ab58e5f018b72c804b22190a081b2 [file] [log] [blame]
Davide Pesavento90a632b2021-10-04 01:05:24 -04001name: Docs
2on:
3 push:
4 paths-ignore:
5 - '*.md'
6 - '.mailmap'
7 workflow_dispatch:
8
9permissions:
10 contents: read
11
12jobs:
13 build:
Davide Pesavento423553e2022-08-19 20:46:06 -040014 runs-on: ${{ matrix.os }}
Davide Pesavento90a632b2021-10-04 01:05:24 -040015 strategy:
16 fail-fast: false
17 matrix:
Davide Pesaventob2034db2022-11-16 17:21:22 -050018 os: [macos-latest, ubuntu-latest]
Davide Pesavento90a632b2021-10-04 01:05:24 -040019 env:
20 JOB_NAME: Docs
Davide Pesavento90a632b2021-10-04 01:05:24 -040021 steps:
22 - name: Checkout
Davide Pesavento7f27ec12022-03-10 20:10:54 -050023 uses: actions/checkout@v3
Davide Pesavento90a632b2021-10-04 01:05:24 -040024 - name: Install dependencies
25 run: |
Davide Pesavento90a632b2021-10-04 01:05:24 -040026 find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' +
27 ./.jenkins
28 - name: Build documentation
29 run: |
Davide Pesaventob2034db2022-11-16 17:21:22 -050030 pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))')
31 export PATH="${pybindir}${PATH:+:}${PATH}"
Davide Pesavento90a632b2021-10-04 01:05:24 -040032 ./waf --color=yes configure
33 ./waf --color=yes build --targets=version.hpp
34 ./waf --color=yes build --targets=manpages
35 ./waf --color=yes docs