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