[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:
|
values:
|
||||||
- broadcom
|
- broadcom
|
||||||
- mellanox
|
- mellanox
|
||||||
|
- marvell-armhf
|
||||||
|
|
||||||
|
- name: platform_arch
|
||||||
|
type: string
|
||||||
|
values:
|
||||||
|
- amd64
|
||||||
|
- armhf
|
||||||
|
- arm64
|
||||||
|
default: amd64
|
||||||
|
|
||||||
- name: platform_short
|
- name: platform_short
|
||||||
type: string
|
type: string
|
||||||
values:
|
values:
|
||||||
- brcm
|
- brcm
|
||||||
- mlnx
|
- mlnx
|
||||||
|
- marvell-armhf
|
||||||
|
|
||||||
- name: cache_mode
|
- name: cache_mode
|
||||||
type: string
|
type: string
|
||||||
@ -18,22 +28,38 @@ parameters:
|
|||||||
- rcache
|
- rcache
|
||||||
- cache
|
- cache
|
||||||
|
|
||||||
|
- name: pool
|
||||||
|
type: string
|
||||||
|
values:
|
||||||
|
- sonicbld
|
||||||
|
- sonicbld_8c
|
||||||
|
default: sonicbld
|
||||||
|
|
||||||
- name: dbg_image
|
- name: dbg_image
|
||||||
type: boolean
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
- name: swi_image
|
- name: swi_image
|
||||||
type: boolean
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
- name: raw_image
|
- name: raw_image
|
||||||
type: boolean
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
- name: sync_rpc_image
|
- name: sync_rpc_image
|
||||||
type: boolean
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
- name: timeout
|
||||||
|
type: number
|
||||||
|
default: 600
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job:
|
- job:
|
||||||
|
pool: ${{ parameters.pool }}
|
||||||
displayName: ${{ parameters.platform }}
|
displayName: ${{ parameters.platform }}
|
||||||
timeoutInMinutes: 600
|
timeoutInMinutes: ${{ parameters.timeout }}
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
@ -42,8 +68,10 @@ jobs:
|
|||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
sudo modprobe overlay
|
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 }}"
|
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
|
trap "sudo rm -rf fsroot" EXIT
|
||||||
if [ ${{ parameters.dbg_image }} ];then
|
if [ ${{ parameters.dbg_image }} ];then
|
||||||
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) INSTALL_DEBUG_TOOLS=y target/sonic-${{ parameters.platform }}.bin && \
|
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 reset --hard || true' || true
|
||||||
git submodule foreach --recursive 'git remote update || true' || true
|
git submodule foreach --recursive 'git remote update || true' || true
|
||||||
git submodule update --init --recursive || 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"
|
displayName: "Clean Workspace"
|
||||||
|
@ -16,7 +16,6 @@ pr: none
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
pool: sonicbld
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: build-template.yml
|
- template: build-template.yml
|
||||||
@ -28,3 +27,12 @@ stages:
|
|||||||
swi_image: true
|
swi_image: true
|
||||||
raw_image: true
|
raw_image: true
|
||||||
sync_rpc_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