Add '.drone.yml'

This commit is contained in:
DataHoarder 2020-12-17 21:11:45 +00:00
parent af52427f21
commit f43aa8b589
Signed by: GammaSpectra.live Git
GPG key ID: 8B02E6093E9CB7B3

37
.drone.yml Normal file
View file

@ -0,0 +1,37 @@
---
#Based on https://gist.github.com/WeebDataHoarder/634f2ef54e0c6cde0ccdb00e377e5e28
kind: pipeline
type: docker
name: ubuntu-20.04-make
steps:
- name: build-make
image: ubuntu:20.04
commands:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential libcap-ng0 libcap-ng-dev libssl-dev autoconf automake libtool-bin curl git-core libnuma-dev driverctl meson ninja-build linux-headers
- sed -i 's/CONFIG_RTE_FM10K_SWITCH_MANAGEMENT=.*$/CONFIG_RTE_FM10K_SWITCH_MANAGEMENT=y/g' config/common_base
- sed -i 's/CONFIG_RTE_LIBRTE_VHOST=.*$/CONFIG_RTE_LIBRTE_VHOST=y/g' config/common_base
- sed -i 's/CONFIG_RTE_LIBRTE_PMD_VHOST=.*$/CONFIG_RTE_LIBRTE_PMD_VHOST=y/g' config/common_base
- sed -i 's/CONFIG_RTE_BUILD_SHARED_LIB=.*$/CONFIG_RTE_BUILD_SHARED_LIB=n/g' config/common_base
- export DPDK_DIR="$(pwd)"
- export DPDK_TARGET="$(arch)-native-linuxapp-gcc"
- export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
- make config T=$DPDK_TARGET MAKE_PAUSE=n
- make install -j $(nproc) T=$DPDK_TARGET DESTDIR=/usr MAKE_PAUSE=n EXTRA_CFLAGS="-Ofast -g"
---
kind: pipeline
type: docker
name: ubuntu-20.04-meson
steps:
- name: build-meson
image: ubuntu:20.04
commands:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential libcap-ng0 libcap-ng-dev libssl-dev autoconf automake libtool-bin curl git-core libnuma-dev driverctl meson ninja-build linux-headers
- meson build -Dfm10k_switch=true
- cd build
- ninja
- ninja install
...