Skip to content

Commit

Permalink
Add 32-bit Linux build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Jun 21, 2019
1 parent 2155815 commit bdf29ca
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ jobs:
buildPlatform: AppImage
dependsOn: Linux
condition: succeeded()
- job: Linux32
pool:
vmImage: ubuntu-16.04
steps:
- script: azure-pipelines/build-linux32
displayName: 'Linux 32-bit'
- task: PublishTestResults@2
inputs:
testRunTitle: Linux32
buildPlatform: Linux32
dependsOn: Linux
condition: succeeded()
- job: Fuzzers
pool:
vmImage: ubuntu-16.04
Expand Down
24 changes: 24 additions & 0 deletions azure-pipelines/build-linux32
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -ex

# dpkg --add-architecture not needed for Ubuntu 18.04
sudo dpkg --add-architecture i386

sudo apt-get update

# For Ubuntu 18.04:
#
# sudo apt-get -y install \
# autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \
# g++-multilib-i686-linux-gnu
# ./configure --enable-werror --enable-show-failed-test-output \
# CC=i686-linux-gnu-gcc CXX=i686-linux-gnu-g++

sudo apt-get -y install \
autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \
g++-multilib
./configure --enable-werror --enable-show-failed-test-output \
CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32

make -j$(nproc) -k
make -k check

0 comments on commit bdf29ca

Please sign in to comment.