Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 1 | name: Docs |
| 2 | on: |
| 3 | push: |
Davide Pesavento | c434323 | 2021-08-13 23:17:05 -0400 | [diff] [blame] | 4 | paths-ignore: |
Davide Pesavento | 2c8ec07 | 2021-09-30 00:04:23 -0400 | [diff] [blame] | 5 | - '*.md' |
Davide Pesavento | c434323 | 2021-08-13 23:17:05 -0400 | [diff] [blame] | 6 | - '.mailmap' |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 7 | workflow_dispatch: |
| 8 | |
Davide Pesavento | c434323 | 2021-08-13 23:17:05 -0400 | [diff] [blame] | 9 | permissions: |
| 10 | contents: read |
| 11 | |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 12 | jobs: |
| 13 | build: |
| 14 | strategy: |
| 15 | fail-fast: false |
| 16 | matrix: |
Davide Pesavento | 2c8ec07 | 2021-09-30 00:04:23 -0400 | [diff] [blame] | 17 | os: [macos-11, ubuntu-20.04] |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 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 | - name: Install dependencies |
| 26 | run: | |
| 27 | case ${RUNNER_OS} in |
Davide Pesavento | 2c8ec07 | 2021-09-30 00:04:23 -0400 | [diff] [blame] | 28 | Linux) export NODE_LABELS="Linux Ubuntu" ;; |
| 29 | macOS) export NODE_LABELS="OSX" ;; |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 30 | 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=manpages |