Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azp] Try build VPP from source #1486

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ parameters:
- name: debian_version
type: string

- name: buildVpp
type: boolean
default: false

jobs:
- job:
displayName: ${{ parameters.arch }}
Expand Down Expand Up @@ -152,6 +156,19 @@ jobs:
rm -rf download
workingDirectory: $(Build.ArtifactStagingDirectory)
displayName: "Install sonic swss Common"
- script: |
set -ex
git clone https://github.com/sonic-net/sonic-platform-vpp.git
mkdir repo
git clone https://gerrit.fd.io/r/vpp repo
cp -vr sonic-platform-vpp/vppbld/plugins/* repo/src/packages
cd repo
git apply ../sonic-platform-vpp/vppbld/vpp.patch
make UNATTENDED=y PLATFORM=vpp install-deps install-ext-deps
make UNATTENDED=y PLATFORM=vpp -j4 pkg-deb
sudo dpkg -i build-root/*.deb
condition: eq('${{ parameters.buildVpp }}', true )
displayName: "Build VPP packages from source"
- script: |
set -ex
rm ../*.deb || true
Expand Down
16 changes: 16 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ stages:
archive_gcov: false
debian_version: ${{ parameters.debian_version }}

- stage: BuildVpp
dependsOn: []
jobs:
- template: .azure-pipelines/build-template.yml
parameters:
arch: amd64
timeout: 300
sonic_slave: sonic-slave-${{ parameters.debian_version }}
swss_common_artifact_name: sonic-swss-common-${{ parameters.debian_version }}
artifact_name: sonic-sairedis-${{ parameters.debian_version }}
syslog_artifact_name: sonic-sairedis.syslog
run_unit_test: true
archive_gcov: true
debian_version: ${{ parameters.debian_version }}
buildVpp: true

- stage: BuildArm
dependsOn: Build
condition: succeeded('Build')
Expand Down
Loading