That was missing so far.
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
steps:
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
- run: sudo apt-get update && sudo apt-get install -y clang doxygen gcc gcc-10 gcc-9 valgrind
+ run: |
+ sudo dpkg --add-architecture i386
+ sudo apt-get update
+ sudo apt-get install -y clang doxygen gcc gcc-10 gcc-9 valgrind \
+ gcc-multilib g++-multilib libc6-dev-i386 \
+ libpcap0.8-dev:i386 libudev-dev:i386 pkg-config:i386
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@v5
with:
sudo rm -fr ${PREFIX_DIR}
)
+# 32-bit sanitized build
+export CC=clang
+export CXX=clang++
+export CFLAGS="-m32"
+export CXXFLAGS="-m32"
+export LDFLAGS="-m32"
+export PKG_CONFIG_PATH="/usr/lib/i386-linux-gnu/pkgconfig"
+TEST_WITH_VALGRIND=false
+sanitized_build
+unset CFLAGS
+unset CXXFLAGS
+unset LDFLAGS
+unset PKG_CONFIG_PATH
+unset TEST_WITH_VALGRIND
+unset CC
+unset CXX
+
# Sanitized build
export CC=clang
export CXX=clang++