Skip to content

Commit

Permalink
ci: Check compilation with DPDK experimental API.
Browse files Browse the repository at this point in the history
Add jobs to check compilation with DPDK experimental API enabled.
This will help us catch issues for the day we need one of them.

Note: this should not be merged to master, intended for dpdk-latest
branch only.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
david-marchand authored and kevintraynor committed Nov 14, 2023
1 parent ed27a7f commit b34d52a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .ci/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CFLAGS_FOR_OVS="-g -O2"
SPARSE_FLAGS=""
EXTRA_OPTS="--enable-Werror"

[ -z "$DPDK_EXPERIMENTAL" ] || DPDK=1
[ -z "$DPDK_SHARED" ] || DPDK=1

function install_dpdk()
{
local VERSION_FILE="dpdk-dir/cached-version"
Expand Down Expand Up @@ -78,8 +81,11 @@ assert ovs.json.from_string('{\"a\": 42}') == {'a': 42}"
exit 0
fi

if [ "$DPDK" ] || [ "$DPDK_SHARED" ]; then
if [ "$DPDK" ]; then
install_dpdk
if [ -n "$DPDK_EXPERIMENTAL" ]; then
CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} -DALLOW_EXPERIMENTAL_API"
fi
fi

if [ "$STD" ]; then
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
CC: ${{ matrix.compiler }}
DPDK: ${{ matrix.dpdk }}
DPDK_SHARED: ${{ matrix.dpdk_shared }}
DPDK_EXPERIMENTAL: ${{ matrix.dpdk_experimental }}
LIBS: ${{ matrix.libs }}
M32: ${{ matrix.m32 }}
OPTS: ${{ matrix.opts }}
Expand Down Expand Up @@ -160,6 +161,9 @@ jobs:
dpdk_shared: dpdk-shared
opts: --enable-shared

- compiler: gcc
dpdk_experimental: dpdk-experimental

- compiler: gcc
m32: m32
opts: --disable-ssl
Expand All @@ -179,7 +183,7 @@ jobs:
python-version: '3.9'

- name: cache
if: matrix.dpdk != '' || matrix.dpdk_shared != ''
if: matrix.dpdk != '' || matrix.dpdk_shared != '' || matrix.dpdk_experimental != ''
uses: actions/cache@v3
with:
path: dpdk-dir
Expand Down

0 comments on commit b34d52a

Please sign in to comment.