|
| 1 | +name: vpp-verify-gcc |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_run: |
| 5 | + workflows: ["vpp-checkstyle"] |
| 6 | + types: |
| 7 | + - completed |
| 8 | + |
| 9 | +defaults: |
| 10 | + run: |
| 11 | + shell: bash |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + actions: read |
| 16 | + |
| 17 | +concurrency: |
| 18 | + group: required-${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}-${{ github.event.workflow_run.id }} |
| 19 | + cancel-in-progress: true |
| 20 | + |
| 21 | +jobs: |
| 22 | + vpp-verify-gcc: |
| 23 | + name: ${{ github.workflow }}--${{ matrix.build-type }}-${{ matrix.os }}-${{ matrix.executor_arch }} |
| 24 | + if: ${{ github.event.workflow_run.conclusion == 'success' }} |
| 25 | + runs-on: |
| 26 | + - self-hosted |
| 27 | + - nomad |
| 28 | + - fdio:arch=${{ matrix.executor_arch }} |
| 29 | + - fdio:class=builder |
| 30 | + - fdio:namespace=sandbox |
| 31 | + - fdio:os=${{ matrix.os }} |
| 32 | + |
| 33 | + strategy: |
| 34 | + fail-fast: false |
| 35 | + matrix: |
| 36 | + os: ['ubuntu2404', 'ubuntu2204'] |
| 37 | + executor_arch: ['x86_64'] |
| 38 | + build-type: ['debug', 'release'] |
| 39 | + |
| 40 | + env: |
| 41 | + CACHE_DATE: ${{ github.run_id }} |
| 42 | + CCACHE_DIR: /scratch/ccache/${{ matrix.os }}-${{ matrix.executor_arch }} |
| 43 | + MAKE_PARALLEL_JOBS: 16 |
| 44 | + MAKE_TEST_SUITES: "vlib vppinfra vpe_api vapi cli bihash" |
| 45 | + TEST_JOBS: 16 |
| 46 | + TEST_RETRIES: 3 |
| 47 | + MAKE_TEST_OS: ${{ matrix.os == 'ubuntu2204' && 'ubuntu-22.04' || 'ubuntu-24.04' }} |
| 48 | + MAKE_TEST_MULTIWORKER_OS: 'debian-12' |
| 49 | + VPPAPIGEN_TEST_OS: ${{ matrix.os == 'ubuntu2204' && 'ubuntu-22.04' || 'ubuntu-24.04' }} |
| 50 | + SHM_SIZE: ${{ matrix.executor_arch == 'aarch64' && '4096M' || '2048M' }} |
| 51 | + WORKSPACE: ${{ github.workspace }} |
| 52 | + GERRIT_BRANCH: "" |
| 53 | + GERRIT_CHANGE_URL: "" |
| 54 | + GERRIT_PROJECT: "" |
| 55 | + GERRIT_REFSPEC: "" |
| 56 | + TUI_LINE: "*******************************************************************" |
| 57 | + |
| 58 | + steps: |
| 59 | + - name: Actions Checkout |
| 60 | + uses: actions/checkout@v5 |
| 61 | + |
| 62 | + - name: "Show Nomad Attributes" |
| 63 | + uses: pmikus/.github/.github/actions/show-nomad-attributes@main |
| 64 | + |
| 65 | + - name: "Show Nomad Dockerfile" |
| 66 | + uses: pmikus/.github/.github/actions/show-nomad-dockerfile@main |
| 67 | + |
| 68 | + - name: Restore VPP Gerrit Environment Variables |
| 69 | + uses: pmikus/.github/.github/actions/gerrit-env-vars-restore@main |
| 70 | + with: |
| 71 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 72 | + |
| 73 | + - name: Gerrit Checkout |
| 74 | + # yamllint disable-line rule:line-length |
| 75 | + uses: lfreleng-actions/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9 |
| 76 | + with: |
| 77 | + gerrit-refspec: ${{ env.GERRIT_REFSPEC }} |
| 78 | + gerrit-project: ${{ env.GERRIT_PROJECT }} |
| 79 | + gerrit-url: ${{ env.GERRIT_CHANGE_URL }} |
| 80 | + ref: refs/heads/${{ env.GERRIT_BRANCH }} |
| 81 | + fetch-depth: 0 |
| 82 | + delay: "0s" |
| 83 | + |
| 84 | + - name: Setup Environment |
| 85 | + uses: pmikus/.github/.github/actions/setup-executor-env@main |
| 86 | + |
| 87 | + - name: Setup Docker VPP Runtime Environment for 'make test' |
| 88 | + uses: pmikus/vpp/.github/actions/vpp-docker-runtime-setup@master |
| 89 | + with: |
| 90 | + SHM_SIZE: ${{ env.SHM_SIZE }} |
| 91 | + |
| 92 | + - name: Install VPP dependencies |
| 93 | + uses: pmikus/vpp/.github/actions/vpp-install-deps@master |
| 94 | + |
| 95 | + - name: Install VPP external dependencies |
| 96 | + uses: pmikus/vpp/.github/actions/vpp-install-ext-deps@master |
| 97 | + |
| 98 | + - name: Build VPP |
| 99 | + uses: pmikus/vpp/.github/actions/vpp-build@master |
| 100 | + with: |
| 101 | + MAKE_PARALLEL_JOBS: ${{ env.MAKE_PARALLEL_JOBS }} |
| 102 | + BUILD_TYPE: ${{ matrix['build-type'] }} |
| 103 | + USE_GCC: "true" |
| 104 | + |
| 105 | + - name: VPP Make Test |
| 106 | + uses: pmikus/vpp/.github/actions/vpp-make-test@master |
| 107 | + timeout-minutes: 60 |
| 108 | + with: |
| 109 | + MAKE_TEST_SUITES: ${{ env.MAKE_TEST_SUITES }} |
| 110 | + TEST_JOBS: ${{ env.TEST_JOBS }} |
| 111 | + TEST_RETRIES: ${{ env.TEST_RETRIES }} |
| 112 | + MAKE_TEST_OS: ${{ env.MAKE_TEST_OS }} |
| 113 | + MAKE_TEST_MULTIWORKER_OS: ${{ env.MAKE_TEST_MULTIWORKER_OS }} |
| 114 | + VPPAPIGEN_TEST_OS: ${{ env.VPPAPIGEN_TEST_OS }} |
0 commit comments