Another installment in the saga of cross-platform CI! Just like for Windows, Julia Linux jobs on Travis CI can now use
arch: x86 to test with a 32-bit (i686) build of Julia.
Users of Appveyor.jl are likely already familiar with testing both 32- and 64-bit Julia builds on Windows using the
x64 platform specifications. Previously this was only convenient way to test Julia packages on a 32-bit Julia build, and Appveyor.jl is only set up for Windows jobs.
You may be asking yourself, “Why should I care about 32-bit systems?” Ensuring your code works on 32-bit systems (assuming it’s designed to be) betters the experience for users who run 32-bit systems, but it also helps catch memory issues and implicit assumptions about the underlying system. For complex software this can be especially worthwhile.
Unfortunately, Travis does not currently use
arch as an array for generating a build matrix, which means that testing with multiple architectures is a bit verbose. For example,
matrix: include: - os: linux arch: x64 julia: 1.0 - os: linux arch: x86 julia: 1.0
See this comment on the Windows post for more discussion on this. Hopefully this will be simplified in the future.
A special thanks to Hiro Asari (BanzaiMan) from Travis for working with us on this.
Enjoy your build!