From 4e21262c2658cba3dad8e7f4a815d2ed717d5c12 Mon Sep 17 00:00:00 2001 From: kcudnik Date: Tue, 17 Dec 2024 16:45:52 +0100 Subject: [PATCH] [azp] Try build VPP from source Just for test --- .azure-pipelines/build-template.yml | 17 +++++++++++++++++ azure-pipelines.yml | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index e8d855aa1..1d4c4d847 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -46,6 +46,10 @@ parameters: - name: debian_version type: string +- name: buildVpp + type: boolean + default: false + jobs: - job: displayName: ${{ parameters.arch }} @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 92bc9933f..0cbc4526c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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')