blob: 9b1f305f39560d270773c505b7518cee6da1bb92 [file] [log] [blame]
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -04001name: Docs
2on:
3 push:
Davide Pesaventoc4343232021-08-13 23:17:05 -04004 paths-ignore:
Davide Pesavento2c8ec072021-09-30 00:04:23 -04005 - '*.md'
Davide Pesaventoc4343232021-08-13 23:17:05 -04006 - '.mailmap'
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -04007 workflow_dispatch:
8
Davide Pesaventoc4343232021-08-13 23:17:05 -04009permissions:
10 contents: read
11
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040012jobs:
13 build:
Davide Pesaventob97a1122022-08-12 18:26:07 -040014 runs-on: ${{ matrix.os }}
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040015 strategy:
16 fail-fast: false
17 matrix:
Davide Pesavento6f168562022-11-13 15:57:02 -050018 os: [macos-latest, ubuntu-latest]
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040019 env:
20 JOB_NAME: Docs
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040021 steps:
22 - name: Checkout
Davide Pesavento96412a12022-03-05 13:34:23 -050023 uses: actions/checkout@v3
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040024 - name: Install dependencies
25 run: |
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040026 find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' +
27 ./.jenkins
28 - name: Build documentation
29 run: |
Davide Pesavento6f168562022-11-13 15:57:02 -050030 pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))')
31 export PATH="${pybindir}${PATH:+:}${PATH}"
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040032 ./waf --color=yes configure
33 ./waf --color=yes build --targets=manpages