blob: e566385f28507f25e9f50efb0c1f2af868ccb3c8 [file] [log] [blame]
Davide Pesavento8f0028d2021-07-27 20:01:06 -04001name: Docs
2on:
3 push:
Davide Pesavento13dae352021-08-13 15:40:54 -04004 paths-ignore:
Davide Pesaventof28a0612021-09-29 23:13:32 -04005 - '*.md'
Davide Pesavento13dae352021-08-13 15:40:54 -04006 - '.mailmap'
Davide Pesavento8f0028d2021-07-27 20:01:06 -04007 workflow_dispatch:
8
Davide Pesavento13dae352021-08-13 15:40:54 -04009permissions:
10 contents: read
11
Davide Pesavento8f0028d2021-07-27 20:01:06 -040012jobs:
13 build:
Davide Pesavento4791fcb2022-08-14 17:40:05 -040014 runs-on: ${{ matrix.os }}
Davide Pesavento8f0028d2021-07-27 20:01:06 -040015 strategy:
16 fail-fast: false
17 matrix:
Davide Pesaventoa42efcb2022-11-15 02:43:16 -050018 os: [macos-latest, ubuntu-latest]
Davide Pesavento8f0028d2021-07-27 20:01:06 -040019 env:
20 JOB_NAME: Docs
Davide Pesavento8f0028d2021-07-27 20:01:06 -040021 steps:
22 - name: Checkout
Davide Pesaventoc52cd5e2022-03-05 20:40:54 -050023 uses: actions/checkout@v3
Davide Pesavento8f0028d2021-07-27 20:01:06 -040024 with:
25 submodules: true
26 - name: Install dependencies
27 run: |
Davide Pesavento8f0028d2021-07-27 20:01:06 -040028 find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' +
29 ./.jenkins
30 - name: Build documentation
31 run: |
Davide Pesaventoa42efcb2022-11-15 02:43:16 -050032 pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))')
33 export PATH="${pybindir}${PATH:+:}${PATH}"
Davide Pesavento8f0028d2021-07-27 20:01:06 -040034 ./waf --color=yes configure
35 ./waf --color=yes build --targets=version.hpp
36 ./waf --color=yes build --targets=manpages
37 ./waf --color=yes docs