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 Aug 22, 2024
1 parent c61a162 commit 782b38b
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 @@ -8,6 +8,9 @@ SPARSE_FLAGS=""
EXTRA_OPTS="--enable-Werror"
JOBS=${JOBS:-"-j4"}

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

function install_dpdk()
{
local DPDK_INSTALL_DIR="$(pwd)/dpdk-dir"
Expand Down Expand Up @@ -108,8 +111,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 @@ -84,6 +84,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 @@ -161,6 +162,9 @@ jobs:
dpdk_shared: dpdk-shared
opts: --enable-shared

- compiler: gcc
dpdk_experimental: dpdk-experimental

- compiler: gcc
m32: m32
opts: --disable-ssl
Expand Down Expand Up @@ -223,7 +227,7 @@ jobs:
python-version: ${{ env.python_default }}

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

0 comments on commit 782b38b

Please sign in to comment.