[ci]: add mellanox build to azure-pipeline (#6409)

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
lguohan 2021-01-12 06:01:59 -08:00 committed by GitHub
parent 4ef3f1376f
commit 6ff8d2cb10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ stages:
jobs:
- job:
displayName: "broadcom"
timeoutInMinutes: 3600
timeoutInMinutes: 600
steps:
- checkout: self
submodules: recursive
@ -44,9 +44,30 @@ stages:
artifact: sonic-buildimage.broadcom
displayName: "Archive sonic image"
- job:
displayName: "mellanox"
timeoutInMinutes: 600
steps:
- checkout: self
submodules: recursive
displayName: 'Checkout code'
- script: |
sudo modprobe overlay
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/mellanox"
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=mellanox
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS target/sonic-mellanox.bin
displayName: 'Build sonic image'
- script: |
sudo rm -rf fsroot
displayName: 'Clean up build artifacts'
- publish: $(System.DefaultWorkingDirectory)/
artifact: sonic-buildimage.mellanox
displayName: "Archive sonic image"
- job:
displayName: "kvm"
timeoutInMinutes: 3600
timeoutInMinutes: 600
steps:
- checkout: self
submodules: recursive