diff options
author | Bernd Schubert <bernd@bsbernd.com> | 2025-02-16 22:15:31 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-02-18 22:32:49 +0100 |
commit | 57880e812ea47bb088b9f60cd0f5aaff40a95a64 (patch) | |
tree | 1240221711a054bd663ff206efea48087afaf844 | |
parent | 65ce923a6440b2ea37e234a20e8f7d69388bcbd2 (diff) | |
download | libfuse-57880e812ea47bb088b9f60cd0f5aaff40a95a64.tar.gz |
ci-build test: Add a 32-bit compilation test
That was missing so far.
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
-rw-r--r-- | .github/workflows/pr-ci.yml | 7 | ||||
-rwxr-xr-x | test/ci-build.sh | 17 |
2 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index bec6166..ccaaf72 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -26,7 +26,12 @@ jobs: 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: diff --git a/test/ci-build.sh b/test/ci-build.sh index 4f7da4c..3f0ff85 100755 --- a/test/ci-build.sh +++ b/test/ci-build.sh @@ -118,6 +118,23 @@ sanitized_build() 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++ |