blob: 17506731fd6ab58e5f018b72c804b22190a081b2 [file] [log] [blame]
Davide Pesavento30ed6282021-07-25 20:05:06 -04001name: Docs
2on:
3 push:
Davide Pesavento01cea502021-07-31 19:25:42 -04004 paths-ignore:
Davide Pesavento83f8d162021-09-26 21:58:36 -04005 - '*.md'
Davide Pesavento01cea502021-07-31 19:25:42 -04006 - '.mailmap'
Davide Pesavento30ed6282021-07-25 20:05:06 -04007 workflow_dispatch:
8
Davide Pesavento01cea502021-07-31 19:25:42 -04009permissions:
10 contents: read
11
Davide Pesavento30ed6282021-07-25 20:05:06 -040012jobs:
13 build:
Davide Pesaventoa821f592022-08-07 22:14:02 -040014 runs-on: ${{ matrix.os }}
Davide Pesavento30ed6282021-07-25 20:05:06 -040015 strategy:
16 fail-fast: false
17 matrix:
Davide Pesavento83faec72022-11-14 19:44:41 -050018 os: [macos-latest, ubuntu-latest]
Davide Pesavento30ed6282021-07-25 20:05:06 -040019 env:
20 JOB_NAME: Docs
Davide Pesavento30ed6282021-07-25 20:05:06 -040021 steps:
22 - name: Checkout
Davide Pesavento541a8222022-03-01 15:08:42 -050023 uses: actions/checkout@v3
Davide Pesavento30ed6282021-07-25 20:05:06 -040024 - name: Install dependencies
25 run: |
Davide Pesavento30ed6282021-07-25 20:05:06 -040026 find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' +
27 ./.jenkins
28 - name: Build documentation
29 run: |
Davide Pesavento83faec72022-11-14 19:44:41 -050030 pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))')
31 export PATH="${pybindir}${PATH:+:}${PATH}"
Davide Pesavento30ed6282021-07-25 20:05:06 -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