Skip to content

Commit

Permalink
[azp] Try build VPP from source
Browse files Browse the repository at this point in the history
Just for test
  • Loading branch information
kcudnik committed Dec 18, 2024
1 parent 9fe90f6 commit 4e21262
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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

0 comments on commit 4e21262

Please sign in to comment.