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 <[email protected]>
Signed-off-by: Ian Stokes <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
david-marchand committed Feb 1, 2024
1 parent dd41081 commit 1f60374
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 @@ -81,6 +81,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 @@ -158,6 +159,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 @@ -220,7 +224,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@v4
with:
path: dpdk-dir
Expand Down

0 comments on commit 1f60374

Please sign in to comment.