Skip to content

Commit

Permalink
ci: add prefer static option
Browse files Browse the repository at this point in the history
Statically linking dpdk requires --prefer-static option to be
enabled.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
  • Loading branch information
harman-kalra committed Apr 26, 2024
1 parent f7d9a17 commit deeb70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@ jobs:
apt-get install -y gcc-13 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev
pip3 install meson --upgrade
run: |
source /artifacts/env
apt-get install -y ./"dpdk-${DPDK_BASE_PKG_VERSION}-cn10k${PKG_POSTFIX}_${DPDK_PKG_VERSION}_arm64.deb"
export CC='ccache gcc-13'
echo "cache_dir = /root/.ccache" > /root/.ccache/ccache.conf
ccache -p
pkg-config --list-all
meson build -Dplatform=cn10k --prefix="${PWD}/install" -Denable_kmods=false
meson build -Dplatform=cn10k --prefix="${PWD}/install" -Denable_kmods=false --prefer-static
ninja install -C build
mkdir -p "${PWD}/install/DEBIAN"
cd "${PWD}/install"
Expand Down

0 comments on commit deeb70e

Please sign in to comment.