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: |
Davide Pesavento | b97a112 | 2022-08-12 18:26:07 -0400 | [diff] [blame] | 14 | runs-on: ${{ matrix.os }} |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 15 | strategy: |
| 16 | fail-fast: false |
| 17 | matrix: |
Davide Pesavento | 6f16856 | 2022-11-13 15:57:02 -0500 | [diff] [blame] | 18 | os: [macos-latest, ubuntu-latest] |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 19 | env: |
| 20 | JOB_NAME: Docs |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 21 | steps: |
| 22 | - name: Checkout |
Davide Pesavento | 96412a1 | 2022-03-05 13:34:23 -0500 | [diff] [blame] | 23 | uses: actions/checkout@v3 |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 24 | - name: Install dependencies |
| 25 | run: | |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 26 | find .jenkins.d/ -type f -name '[1-9]*.sh' -exec chmod -x '{}' + |
| 27 | ./.jenkins |
| 28 | - name: Build documentation |
| 29 | run: | |
Davide Pesavento | 6f16856 | 2022-11-13 15:57:02 -0500 | [diff] [blame] | 30 | pybindir=$(python3 -c 'import sysconfig; print(sysconfig.get_path("scripts", "posix_user"))') |
| 31 | export PATH="${pybindir}${PATH:+:}${PATH}" |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 32 | ./waf --color=yes configure |
| 33 | ./waf --color=yes build --targets=manpages |