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: |
Davide Pesavento | f28a061 | 2021-09-29 23:13:32 -0400 | [diff] [blame] | 5 | - '*.md' |
Davide Pesavento | 13dae35 | 2021-08-13 15:40:54 -0400 | [diff] [blame] | 6 | - '.mailmap' |
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: |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 14 | runs-on: ${{ matrix.os }} |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 15 | strategy: |
| 16 | fail-fast: false |
| 17 | matrix: |
Davide Pesavento | a42efcb | 2022-11-15 02:43:16 -0500 | [diff] [blame] | 18 | os: [macos-latest, ubuntu-latest] |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 19 | env: |
| 20 | JOB_NAME: Docs |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 21 | steps: |
| 22 | - name: Checkout |
Davide Pesavento | c52cd5e | 2022-03-05 20:40:54 -0500 | [diff] [blame] | 23 | uses: actions/checkout@v3 |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 24 | with: |
| 25 | submodules: true |
| 26 | - name: Install dependencies |
| 27 | run: | |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 28 | find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' + |
| 29 | ./.jenkins |
| 30 | - name: Build documentation |
| 31 | run: | |
Davide Pesavento | a42efcb | 2022-11-15 02:43:16 -0500 | [diff] [blame] | 32 | pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))') |
| 33 | export PATH="${pybindir}${PATH:+:}${PATH}" |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 34 | ./waf --color=yes configure |
| 35 | ./waf --color=yes build --targets=version.hpp |
| 36 | ./waf --color=yes build --targets=manpages |
| 37 | ./waf --color=yes docs |