vpp-verify-docs #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: vpp-verify-docs | |
| on: | |
| workflow_run: | |
| workflows: ["vpp-checkstyle"] | |
| types: | |
| - completed | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: read | |
| actions: read | |
| concurrency: | |
| group: required-${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}-${{ github.event.workflow_run.id }} | |
| cancel-in-progress: true | |
| jobs: | |
| vpp-verify-docs: | |
| name: ${{ github.workflow }}--${{ matrix.build-type }}-${{ matrix.os }}-${{ matrix.executor_arch }} | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: | |
| - self-hosted | |
| - nomad | |
| - fdio:arch=x86_64 | |
| - fdio:class=builder | |
| - fdio:namespace=sandbox | |
| - fdio:os=ubuntu2404 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu2204'] | |
| executor_arch: ['x86_64'] | |
| build-type: ['release'] | |
| env: | |
| WORKSPACE: ${{ github.workspace }} | |
| GERRIT_BRANCH: "" | |
| GERRIT_CHANGE_URL: "" | |
| GERRIT_PROJECT: "" | |
| GERRIT_REFSPEC: "" | |
| GERRIT_CHANGE_NUMBER: "" | |
| GERRIT_PATCHSET_NUMBER: "" | |
| TUI_LINE: "*******************************************************************" | |
| steps: | |
| - name: Actions Checkout | |
| uses: actions/checkout@v5 | |
| - name: "Show Nomad Attributes" | |
| uses: pmikus/.github/.github/actions/show-nomad-attributes@main | |
| - name: "Show Nomad Dockerfile" | |
| uses: pmikus/.github/.github/actions/show-nomad-dockerfile@main | |
| - name: Restore VPP Gerrit Environment Variables | |
| uses: pmikus/.github/.github/actions/gerrit-env-vars-restore@main | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Gerrit Checkout | |
| # yamllint disable-line rule:line-length | |
| uses: lfreleng-actions/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9 | |
| with: | |
| gerrit-refspec: ${{ env.GERRIT_REFSPEC }} | |
| gerrit-project: ${{ env.GERRIT_PROJECT }} | |
| gerrit-url: ${{ env.GERRIT_CHANGE_URL }} | |
| ref: refs/heads/${{ env.GERRIT_BRANCH }} | |
| fetch-depth: 0 | |
| delay: "0s" | |
| - name: Setup Environment | |
| uses: pmikus/.github/.github/actions/setup-executor-env@main | |
| - name: Make Docs | |
| run: | | |
| set -euo pipefail | |
| make docs | |
| - name: Upload Documentation Artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: vpp-docs-${{ env.GERRIT_BRANCH }}-${{ env.GERRIT_CHANGE_NUMBER }}-${{ env.GERRIT_PATCHSET_NUMBER }} | |
| path: build-root/docs/ | |
| retention-days: 7 |