[ci]: add marvel armhf official build (#6707)
- [ci]: add default values to build template - [ci]: add marvel armhf official build Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
3001bbcd28
commit
2a66e80deb
@ -4,12 +4,22 @@ parameters:
|
||||
values:
|
||||
- broadcom
|
||||
- mellanox
|
||||
- marvell-armhf
|
||||
|
||||
- name: platform_arch
|
||||
type: string
|
||||
values:
|
||||
- amd64
|
||||
- armhf
|
||||
- arm64
|
||||
default: amd64
|
||||
|
||||
- name: platform_short
|
||||
type: string
|
||||
values:
|
||||
- brcm
|
||||
- mlnx
|
||||
- marvell-armhf
|
||||
|
||||
- name: cache_mode
|
||||
type: string
|
||||
@ -18,22 +28,38 @@ parameters:
|
||||
- rcache
|
||||
- cache
|
||||
|
||||
- name: pool
|
||||
type: string
|
||||
values:
|
||||
- sonicbld
|
||||
- sonicbld_8c
|
||||
default: sonicbld
|
||||
|
||||
- name: dbg_image
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: swi_image
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: raw_image
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: sync_rpc_image
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: timeout
|
||||
type: number
|
||||
default: 600
|
||||
|
||||
jobs:
|
||||
- job:
|
||||
pool: ${{ parameters.pool }}
|
||||
displayName: ${{ parameters.platform }}
|
||||
timeoutInMinutes: 600
|
||||
timeoutInMinutes: ${{ parameters.timeout }}
|
||||
steps:
|
||||
- checkout: self
|
||||
submodules: recursive
|
||||
@ -42,8 +68,10 @@ jobs:
|
||||
- script: |
|
||||
set -e
|
||||
sudo modprobe overlay
|
||||
sudo apt-get install -y acl
|
||||
export DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker
|
||||
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=${{ parameters.cache_mode }} SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/${{ parameters.platform }}"
|
||||
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=${{ parameters.platform }}
|
||||
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=${{ parameters.platform }} PLATFORM_ARCH=${{ parameters.platform_arch }}
|
||||
trap "sudo rm -rf fsroot" EXIT
|
||||
if [ ${{ parameters.dbg_image }} ];then
|
||||
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) INSTALL_DEBUG_TOOLS=y target/sonic-${{ parameters.platform }}.bin && \
|
||||
|
@ -9,4 +9,10 @@ steps:
|
||||
git submodule foreach --recursive 'git reset --hard || true' || true
|
||||
git submodule foreach --recursive 'git remote update || true' || true
|
||||
git submodule update --init --recursive || true
|
||||
|
||||
# clean native docker build
|
||||
if sudo [ -f dockerfs/var/run/docker.pid ] ; then
|
||||
pid=`sudo cat dockerfs/var/run/docker.pid` ; sudo kill $pid
|
||||
fi
|
||||
sudo rm -rf /data/march/docker
|
||||
displayName: "Clean Workspace"
|
||||
|
@ -16,7 +16,6 @@ pr: none
|
||||
|
||||
stages:
|
||||
- stage: Build
|
||||
pool: sonicbld
|
||||
|
||||
jobs:
|
||||
- template: build-template.yml
|
||||
@ -28,3 +27,12 @@ stages:
|
||||
swi_image: true
|
||||
raw_image: true
|
||||
sync_rpc_image: true
|
||||
|
||||
- template: build-template.yml
|
||||
parameters:
|
||||
timeout: 3600
|
||||
platform: marvell-armhf
|
||||
platform_arch: armhf
|
||||
platform_short: marvell-armhf
|
||||
cache_mode: wcache
|
||||
pool: sonicbld_8c
|
||||
|
Loading…
Reference in New Issue
Block a user