ref: 29eecc26c9a4273feaeef67930f538c0ea64327d
parent: 03755933baa49f741b1b2b8087a19767874ae1cc
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Jan 23 09:17:54 EST 2020
Build both 32-bit and 64-bit binaries in Travis
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- make
- - g++-mingw-w64-x86-64
+ - mingw-w64
#env:
# - BUILD_TYPE=Debug
@@ -47,11 +47,8 @@
- echo $TRAVIS_OS_NAME
# Display build type
- - echo $BUILD_TYPE
+# - echo $BUILD_TYPE
- # Point CC and CXX to MinGW-w64 (and also WINDRES)
- - export CXX="x86_64-w64-mingw32-g++" CC="x86_64-w64-mingw32-gcc" WINDRES="x86_64-w64-mingw32-windres"
-
# Display compilers name/version
- echo ${CC}
- echo ${CXX}
@@ -64,7 +61,11 @@
- echo $JOBS
script:
- - make -j ${JOBS} FIX_BUGS=1 RELEASE=1 WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1
+ # Compile 32-bit build
+ - make -j ${JOBS} FIX_BUGS=1 RELEASE=1 WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ WINDRES=i686-w64-mingw32-windres
+
+ # Compile 64-bit build
+ - make -j ${JOBS} FIX_BUGS=1 RELEASE=1 WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ WINDRES=x86_64-w64-mingw32-windres
after_success:
# Send success notification to Discord through DISCORD_WEBHOOK_URL