Commit bdf29ca33e1b9cd73c46a71019e88a964a1dd91f
1 parent
21558152
Add 32-bit Linux build to CI
Showing
2 changed files
with
36 additions
and
0 deletions
azure-pipelines.yml
| ... | ... | @@ -100,6 +100,18 @@ jobs: |
| 100 | 100 | buildPlatform: AppImage |
| 101 | 101 | dependsOn: Linux |
| 102 | 102 | condition: succeeded() |
| 103 | +- job: Linux32 | |
| 104 | + pool: | |
| 105 | + vmImage: ubuntu-16.04 | |
| 106 | + steps: | |
| 107 | + - script: azure-pipelines/build-linux32 | |
| 108 | + displayName: 'Linux 32-bit' | |
| 109 | + - task: PublishTestResults@2 | |
| 110 | + inputs: | |
| 111 | + testRunTitle: Linux32 | |
| 112 | + buildPlatform: Linux32 | |
| 113 | + dependsOn: Linux | |
| 114 | + condition: succeeded() | |
| 103 | 115 | - job: Fuzzers |
| 104 | 116 | pool: |
| 105 | 117 | vmImage: ubuntu-16.04 | ... | ... |
azure-pipelines/build-linux32
0 → 100755
| 1 | +#!/bin/bash | |
| 2 | +set -ex | |
| 3 | + | |
| 4 | +# dpkg --add-architecture not needed for Ubuntu 18.04 | |
| 5 | +sudo dpkg --add-architecture i386 | |
| 6 | + | |
| 7 | +sudo apt-get update | |
| 8 | + | |
| 9 | +# For Ubuntu 18.04: | |
| 10 | +# | |
| 11 | +# sudo apt-get -y install \ | |
| 12 | +# autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \ | |
| 13 | +# g++-multilib-i686-linux-gnu | |
| 14 | +# ./configure --enable-werror --enable-show-failed-test-output \ | |
| 15 | +# CC=i686-linux-gnu-gcc CXX=i686-linux-gnu-g++ | |
| 16 | + | |
| 17 | +sudo apt-get -y install \ | |
| 18 | + autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \ | |
| 19 | + g++-multilib | |
| 20 | +./configure --enable-werror --enable-show-failed-test-output \ | |
| 21 | + CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 | |
| 22 | + | |
| 23 | +make -j$(nproc) -k | |
| 24 | +make -k check | ... | ... |