Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:

- uses: "actions/checkout@v4"
with:
# make sure to update the vlab prebuild script if changing it
ref: ${{ github.event.pull_request.head.sha }}

- name: "install nix"
Expand Down Expand Up @@ -200,6 +201,48 @@ jobs:
with:
limit-access-to-actor: true

vlab:
needs:
- run

name: "${{ matrix.hybrid && 'hlab' || 'vlab' }}-${{ matrix.fabricmode == 'spine-leaf' && 'sl' || 'cc' }}-${{ matrix.gateway && 'gw-' || '' }}${{ matrix.includeonie && 'onie-' || '' }}${{ matrix.buildmode }}-${{ matrix.vpcmode }}"

uses: githedgehog/fabricator/.github/workflows/run-vlab.yaml@master
with:
skip: ${{ matrix.hybrid && !contains(github.event.pull_request.labels.*.name, 'ci:+hlab') || !matrix.hybrid && !contains(github.event.pull_request.labels.*.name, 'ci:+vlab') }}
fabricatorref: master
prebuild: "just bump frr ${{ github.event.pull_request.head.sha }}.debug"
fabricmode: ${{ matrix.fabricmode }}
gateway: ${{ matrix.gateway }}
includeonie: ${{ matrix.includeonie }}
buildmode: ${{ matrix.buildmode }}
vpcmode: ${{ matrix.vpcmode }}
releasetest: ${{ contains(github.event.pull_request.labels.*.name, 'ci:+release') }}
hybrid: ${{ matrix.hybrid }}

strategy:
fail-fast: false
matrix:
fabricmode:
- spine-leaf
gateway:
- true
includeonie:
- false
buildmode:
- iso
vpcmode:
- l2vni
- l3vni
hybrid:
- false
include:
- fabricmode: spine-leaf
gateway: true
includeonie: false
buildmode: iso
vpcmode: l2vni
hybrid: true

summary:
name: "summary"
Expand All @@ -208,9 +251,15 @@ jobs:
- "ubuntu-latest"
needs:
- run
- vlab
steps:
- name: "Flag any build matrix failures"
if: ${{ needs.run.result != 'success' }}
if: ${{ needs.run.result != 'success' && needs.run.result != 'skipped' }}
run: |
>&2 echo "A critical step failed!"
exit 1
- name: "Flag any vlab matrix failures"
if: ${{ needs.vlab.result != 'success' && needs.vlab.result != 'skipped' }}
run: |
>&2 echo "A critical step failed!"
exit 1
Loading