Skip to content

Commit

Permalink
iox-#2301 Add 32 bit build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Aug 22, 2024
1 parent 90d62b0 commit 8a62708
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,20 @@ jobs:
- name: Run Thread Sanitizer
run: ./tools/ci/build-test-ubuntu-with-sanitizers.sh clang tsan

build-test-ubuntu-32-bit:
# prevent stuck jobs consuming runners for 6 hours
timeout-minutes: 60
runs-on: ubuntu-latest
needs: pre-flight-check
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/[email protected]
with:
# gcc 8.3 is compiler used in QNX 7.1
version: 13
platform: x64
- run: ./tools/ci/build-test-ubuntu.sh 32-bit-x86

# Bazel sanity check
build-test-ubuntu-bazel:
# prevent stuck jobs consuming runners for 6 hours
Expand Down
24 changes: 22 additions & 2 deletions tools/ci/build-test-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@

set -e

COMPILER=gcc
SANITIZER=asan
BUILD_32BIT=""

while (( "$#" )); do
case "$1" in
"32-bit-x86")
BUILD_32BIT="32-bit-x86"
shift 1
;;
esac
done

msg() {
printf "\033[1;32m%s: %s\033[0m\n" ${FUNCNAME[1]} "$1"
}
Expand All @@ -27,7 +40,14 @@ WORKSPACE=$(git rev-parse --show-toplevel)
cd ${WORKSPACE}

msg "installing build dependencies"
sudo apt-get update && sudo apt-get install -y libacl1-dev libncurses5-dev
sudo apt-get update && sudo apt-get install -y \
libacl1-dev \
libncurses5-dev \
libc6-dev-i386 \
libc6-dev-i386-cross \
libstdc++6-i386-cross \
gcc-multilib \
g++-multilib

msg "creating local test users and groups for testing access control"
sudo ./tools/scripts/add_test_users.sh
Expand All @@ -37,7 +57,7 @@ $(gcc --version)
$(clang --version)"

msg "building sources"
./tools/iceoryx_build_test.sh build-strict build-all out-of-tree build-shared test-add-user
./tools/iceoryx_build_test.sh build-strict build-all out-of-tree build-shared test-add-user ${BUILD_32BIT}

msg "building debian package"
./tools/iceoryx_build_test.sh package
Expand Down

0 comments on commit 8a62708

Please sign in to comment.