blob: caededc1245759fb3bee34cdc23bbfc9bfbd304c [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:
14 strategy:
15 fail-fast: false
16 matrix:
Davide Pesaventof28a0612021-09-29 23:13:32 -040017 os: [macos-11, ubuntu-20.04]
Davide Pesavento8f0028d2021-07-27 20:01:06 -040018 runs-on: ${{ matrix.os }}
19 env:
20 JOB_NAME: Docs
21 WAF_JOBS: 3
22 steps:
23 - name: Checkout
Davide Pesaventoc52cd5e2022-03-05 20:40:54 -050024 uses: actions/checkout@v3
Davide Pesavento8f0028d2021-07-27 20:01:06 -040025 with:
26 submodules: true
27 - name: Install dependencies
28 run: |
29 case ${RUNNER_OS} in
Davide Pesaventof28a0612021-09-29 23:13:32 -040030 Linux) export NODE_LABELS="Linux Ubuntu" ;;
31 macOS) export NODE_LABELS="OSX" ;;
Davide Pesavento8f0028d2021-07-27 20:01:06 -040032 esac
33 find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' +
34 ./.jenkins
35 - name: Build documentation
36 run: |
37 ./waf --color=yes configure
38 ./waf --color=yes build --targets=version.hpp
39 ./waf --color=yes build --targets=manpages
40 ./waf --color=yes docs