Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 1 | name: Docs |
| 2 | on: |
| 3 | push: |
Davide Pesavento | 13dae35 | 2021-08-13 15:40:54 -0400 | [diff] [blame] | 4 | paths-ignore: |
| 5 | - '.mailmap' |
| 6 | - '.travis.yml' |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 7 | workflow_dispatch: |
| 8 | |
Davide Pesavento | 13dae35 | 2021-08-13 15:40:54 -0400 | [diff] [blame] | 9 | permissions: |
| 10 | contents: read |
| 11 | |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 12 | jobs: |
| 13 | build: |
| 14 | strategy: |
| 15 | fail-fast: false |
| 16 | matrix: |
| 17 | os: [macos-10.15, ubuntu-20.04] |
| 18 | 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 | with: |
| 26 | submodules: true |
| 27 | - name: Install dependencies |
| 28 | run: | |
| 29 | case ${RUNNER_OS} in |
| 30 | Linux) export NODE_LABELS="Linux Ubuntu Ubuntu-20.04" ;; |
| 31 | macOS) export NODE_LABELS="OSX OSX-10.15" ;; |
| 32 | 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 |